// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_subscribe_to_shard_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::subscribe_to_shard::SubscribeToShardInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.consumer_arn {
        object.key("ConsumerARN").string(var_1.as_str());
    }
    if let Some(var_2) = &input.shard_id {
        object.key("ShardId").string(var_2.as_str());
    }
    if let Some(var_3) = &input.starting_position {
        #[allow(unused_mut)]
        let mut object_4 = object.key("StartingPosition").start_object();
        crate::protocol_serde::shape_starting_position::ser_starting_position(&mut object_4, var_3)?;
        object_4.finish();
    }
    Ok(())
}
