pub fn ser_update_bandwidth_rate_limit_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::update_bandwidth_rate_limit::UpdateBandwidthRateLimitInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.gateway_arn {
object.key("GatewayARN").string(var_1.as_str());
}
if let Some(var_2) = &input.average_upload_rate_limit_in_bits_per_sec {
object.key("AverageUploadRateLimitInBitsPerSec").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_2).into()),
);
}
if let Some(var_3) = &input.average_download_rate_limit_in_bits_per_sec {
object.key("AverageDownloadRateLimitInBitsPerSec").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_3).into()),
);
}
Ok(())
}