pub fn ser_custom_content(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::CustomContent,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.custom_document_identifier {
#[allow(unused_mut)]
let mut object_2 = object.key("customDocumentIdentifier").start_object();
crate::protocol_serde::shape_custom_document_identifier::ser_custom_document_identifier(&mut object_2, var_1)?;
object_2.finish();
}
{
object.key("sourceType").string(input.source_type.as_str());
}
if let Some(var_3) = &input.s3_location {
#[allow(unused_mut)]
let mut object_4 = object.key("s3Location").start_object();
crate::protocol_serde::shape_custom_s3_location::ser_custom_s3_location(&mut object_4, var_3)?;
object_4.finish();
}
if let Some(var_5) = &input.inline_content {
#[allow(unused_mut)]
let mut object_6 = object.key("inlineContent").start_object();
crate::protocol_serde::shape_inline_content::ser_inline_content(&mut object_6, var_5)?;
object_6.finish();
}
Ok(())
}