aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_put_third_party_cost_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::put_third_party_cost::PutThirdPartyCostInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.amount {
        object.key("amount").string(var_1.as_str());
    }
    if let Some(var_2) = &input.client_token {
        object.key("clientToken").string(var_2.as_str());
    }
    if let Some(var_3) = &input.cost_id {
        object.key("costId").string(var_3.as_str());
    }
    if let Some(var_4) = &input.currency {
        object.key("currency").string(var_4.as_str());
    }
    if let Some(var_5) = &input.description {
        object.key("description").string(var_5.as_str());
    }
    if let Some(var_6) = &input.effective_from {
        object.key("effectiveFrom").string(var_6.as_str());
    }
    if let Some(var_7) = &input.effective_to {
        object.key("effectiveTo").string(var_7.as_str());
    }
    if let Some(var_8) = &input.frequency {
        object.key("frequency").string(var_8.as_str());
    }
    if let Some(var_9) = &input.label {
        object.key("label").string(var_9.as_str());
    }
    Ok(())
}