// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_verify_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::verify::VerifyInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.key_id {
        object.key("KeyId").string(var_1.as_str());
    }
    if let Some(var_2) = &input.message {
        object.key("Message").string_unchecked(&::aws_smithy_types::base64::encode(var_2));
    }
    if let Some(var_3) = &input.message_type {
        object.key("MessageType").string(var_3.as_str());
    }
    if let Some(var_4) = &input.signature {
        object.key("Signature").string_unchecked(&::aws_smithy_types::base64::encode(var_4));
    }
    if let Some(var_5) = &input.signing_algorithm {
        object.key("SigningAlgorithm").string(var_5.as_str());
    }
    if let Some(var_6) = &input.grant_tokens {
        let mut array_7 = object.key("GrantTokens").start_array();
        for item_8 in var_6 {
            {
                array_7.value().string(item_8.as_str());
            }
        }
        array_7.finish();
    }
    if let Some(var_9) = &input.dry_run {
        object.key("DryRun").boolean(*var_9);
    }
    Ok(())
}
