pub fn ser_encrypt_data_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::encrypt_data::EncryptDataInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.encryption_attributes {
#[allow(unused_mut)]
let mut object_2 = object.key("EncryptionAttributes").start_object();
crate::protocol_serde::shape_encryption_decryption_attributes::ser_encryption_decryption_attributes(&mut object_2, var_1)?;
object_2.finish();
}
if let Some(var_3) = &input.plain_text {
object.key("PlainText").string(var_3.as_str());
}
if let Some(var_4) = &input.wrapped_key {
#[allow(unused_mut)]
let mut object_5 = object.key("WrappedKey").start_object();
crate::protocol_serde::shape_wrapped_key::ser_wrapped_key(&mut object_5, var_4)?;
object_5.finish();
}
Ok(())
}