// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn ser_create_facet_input_input( object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, input: &crate::operation::create_facet::CreateFacetInput, ) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { if let Some(var_1) = &input.attributes { let mut array_2 = object.key("Attributes").start_array(); for item_3 in var_1 { { #[allow(unused_mut)] let mut object_4 = array_2.value().start_object(); crate::protocol_serde::shape_facet_attribute::ser_facet_attribute(&mut object_4, item_3)?; object_4.finish(); } } array_2.finish(); } if let Some(var_5) = &input.facet_style { object.key("FacetStyle").string(var_5.as_str()); } if let Some(var_6) = &input.name { object.key("Name").string(var_6.as_str()); } if let Some(var_7) = &input.object_type { object.key("ObjectType").string(var_7.as_str()); } Ok(()) }