pub fn ser_create_starter_mapping_template_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::create_starter_mapping_template::CreateStarterMappingTemplateInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.output_sample_location {
#[allow(unused_mut)]
let mut object_2 = object.key("outputSampleLocation").start_object();
crate::protocol_serde::shape_s3_location::ser_s3_location(&mut object_2, var_1)?;
object_2.finish();
}
if let Some(var_3) = &input.mapping_type {
object.key("mappingType").string(var_3.as_str());
}
if let Some(var_4) = &input.template_details {
#[allow(unused_mut)]
let mut object_5 = object.key("templateDetails").start_object();
crate::protocol_serde::shape_template_details::ser_template_details(&mut object_5, var_4)?;
object_5.finish();
}
Ok(())
}