pub fn ser_warm_throughput_specification(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::WarmThroughputSpecification,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.read_units_per_second {
object.key("readUnitsPerSecond").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_1).into()),
);
}
if let Some(var_2) = &input.write_units_per_second {
object.key("writeUnitsPerSecond").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_2).into()),
);
}
Ok(())
}