// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_register_client_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::register_client::RegisterClientInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.client_name {
        object.key("clientName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.client_type {
        object.key("clientType").string(var_2.as_str());
    }
    if let Some(var_3) = &input.scopes {
        let mut array_4 = object.key("scopes").start_array();
        for item_5 in var_3 {
            {
                array_4.value().string(item_5.as_str());
            }
        }
        array_4.finish();
    }
    Ok(())
}
