pub fn ser_update_location_fsx_open_zfs_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.location_arn {
object.key("LocationArn").string(var_1.as_str());
}
if let Some(var_2) = &input.protocol {
#[allow(unused_mut)]
let mut object_3 = object.key("Protocol").start_object();
crate::protocol_serde::shape_fsx_protocol::ser_fsx_protocol(&mut object_3, var_2)?;
object_3.finish();
}
if let Some(var_4) = &input.subdirectory {
object.key("Subdirectory").string(var_4.as_str());
}
Ok(())
}