// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_disable_enhanced_monitoring_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.stream_name {
        object.key("StreamName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.shard_level_metrics {
        let mut array_3 = object.key("ShardLevelMetrics").start_array();
        for item_4 in var_2 {
            {
                array_3.value().string(item_4.as_str());
            }
        }
        array_3.finish();
    }
    if let Some(var_5) = &input.stream_arn {
        object.key("StreamARN").string(var_5.as_str());
    }
    if let Some(var_6) = &input.stream_id {
        object.key("StreamId").string(var_6.as_str());
    }
    Ok(())
}
