pub fn ser_list_prefetch_schedules_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::list_prefetch_schedules::ListPrefetchSchedulesInput,
) -> Result<(), ::aws_smithy_http::operation::error::SerializationError> {
    if input.max_results != 0 {
        object.key("MaxResults").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((input.max_results).into()),
        );
    }
    if let Some(var_1) = &input.next_token {
        object.key("NextToken").string(var_1.as_str());
    }
    if let Some(var_2) = &input.stream_id {
        object.key("StreamId").string(var_2.as_str());
    }
    Ok(())
}