pub fn ser_templated_message_config(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::TemplatedMessageConfig,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("KnowledgeBaseId").string(input.knowledge_base_id.as_str());
}
{
object.key("MessageTemplateId").string(input.message_template_id.as_str());
}
if let Some(var_1) = &input.template_attributes {
#[allow(unused_mut)]
let mut object_2 = object.key("TemplateAttributes").start_object();
crate::protocol_serde::shape_template_attributes::ser_template_attributes(&mut object_2, var_1)?;
object_2.finish();
}
Ok(())
}