pub fn ser_knowledge_source(
object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::KnowledgeSource,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
match input {
crate::types::KnowledgeSource::AssistantAssociationIds(inner) => {
let mut array_1 = object_2.key("assistantAssociationIds").start_array();
for item_2 in inner {
{
array_1.value().string(item_2.as_str());
}
}
array_1.finish();
}
crate::types::KnowledgeSource::Unknown => {
return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
"KnowledgeSource",
))
}
}
Ok(())
}