// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_start_async_invoke_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::start_async_invoke::StartAsyncInvokeInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.client_request_token {
        object.key("clientRequestToken").string(var_1.as_str());
    }
    if let Some(var_2) = &input.model_id {
        object.key("modelId").string(var_2.as_str());
    }
    if let Some(var_3) = &input.model_input {
        object.key("modelInput").document(var_3);
    }
    if let Some(var_4) = &input.output_data_config {
        #[allow(unused_mut)]
        let mut object_5 = object.key("outputDataConfig").start_object();
        crate::protocol_serde::shape_async_invoke_output_data_config::ser_async_invoke_output_data_config(&mut object_5, var_4)?;
        object_5.finish();
    }
    if let Some(var_6) = &input.tags {
        let mut array_7 = object.key("tags").start_array();
        for item_8 in var_6 {
            {
                #[allow(unused_mut)]
                let mut object_9 = array_7.value().start_object();
                crate::protocol_serde::shape_tag::ser_tag(&mut object_9, item_8)?;
                object_9.finish();
            }
        }
        array_7.finish();
    }
    Ok(())
}
