// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_record_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::put_record::PutRecordInput,
) -> ::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.data {
        object.key("Data").string_unchecked(&::aws_smithy_types::base64::encode(var_2));
    }
    if let Some(var_3) = &input.partition_key {
        object.key("PartitionKey").string(var_3.as_str());
    }
    if let Some(var_4) = &input.explicit_hash_key {
        object.key("ExplicitHashKey").string(var_4.as_str());
    }
    if let Some(var_5) = &input.sequence_number_for_ordering {
        object.key("SequenceNumberForOrdering").string(var_5.as_str());
    }
    if let Some(var_6) = &input.stream_arn {
        object.key("StreamARN").string(var_6.as_str());
    }
    if let Some(var_7) = &input.stream_id {
        object.key("StreamId").string(var_7.as_str());
    }
    Ok(())
}
