// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_token_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::create_token::CreateTokenInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.client_id {
        object.key("clientId").string(var_1.as_str());
    }
    if let Some(var_2) = &input.client_secret {
        object.key("clientSecret").string(var_2.as_str());
    }
    if let Some(var_3) = &input.code {
        object.key("code").string(var_3.as_str());
    }
    if let Some(var_4) = &input.code_verifier {
        object.key("codeVerifier").string(var_4.as_str());
    }
    if let Some(var_5) = &input.device_code {
        object.key("deviceCode").string(var_5.as_str());
    }
    if let Some(var_6) = &input.grant_type {
        object.key("grantType").string(var_6.as_str());
    }
    if let Some(var_7) = &input.redirect_uri {
        object.key("redirectUri").string(var_7.as_str());
    }
    if let Some(var_8) = &input.refresh_token {
        object.key("refreshToken").string(var_8.as_str());
    }
    if let Some(var_9) = &input.scope {
        let mut array_10 = object.key("scope").start_array();
        for item_11 in var_9 {
            {
                array_10.value().string(item_11.as_str());
            }
        }
        array_10.finish();
    }
    Ok(())
}
