// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_kinesis_video_stream_configuration_update(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::KinesisVideoStreamConfigurationUpdate,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.data_retention_in_hours {
object.key("DataRetentionInHours").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_1).into()),
);
}
Ok(())
}