// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_translate_text_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::translate_text::TranslateTextInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.text {
        object.key("Text").string(var_1.as_str());
    }
    if let Some(var_2) = &input.terminology_names {
        let mut array_3 = object.key("TerminologyNames").start_array();
        for item_4 in var_2 {
            {
                array_3.value().string(item_4.as_str());
            }
        }
        array_3.finish();
    }
    if let Some(var_5) = &input.source_language_code {
        object.key("SourceLanguageCode").string(var_5.as_str());
    }
    if let Some(var_6) = &input.target_language_code {
        object.key("TargetLanguageCode").string(var_6.as_str());
    }
    if let Some(var_7) = &input.settings {
        #[allow(unused_mut)]
        let mut object_8 = object.key("Settings").start_object();
        crate::protocol_serde::shape_translation_settings::ser_translation_settings(&mut object_8, var_7)?;
        object_8.finish();
    }
    Ok(())
}
