// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_ontology_reference(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::types::OntologyReference,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
{
encoder.str("ontologyId").str(input.ontology_id.as_str());
}
if let Some(var_1) = &input.ontology_version {
encoder.str("ontologyVersion").str(var_1.as_str());
}
encoder.end();
Ok(())
}