pub fn ser_import_as2805_key_cryptogram(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ImportAs2805KeyCryptogram,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("As2805KeyVariant").string(input.as2805_key_variant.as_str());
}
if let Some(var_1) = &input.key_modes_of_use {
#[allow(unused_mut)]
let mut object_2 = object.key("KeyModesOfUse").start_object();
crate::protocol_serde::shape_key_modes_of_use::ser_key_modes_of_use(&mut object_2, var_1)?;
object_2.finish();
}
{
object.key("KeyAlgorithm").string(input.key_algorithm.as_str());
}
{
object.key("Exportable").boolean(input.exportable);
}
{
object.key("WrappingKeyIdentifier").string(input.wrapping_key_identifier.as_str());
}
{
object.key("WrappedKeyCryptogram").string(input.wrapped_key_cryptogram.as_str());
}
Ok(())
}