pub fn ser_describe_insight_details_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::describe_insight_details::DescribeInsightDetailsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.entity {
#[allow(unused_mut)]
let mut object_2 = object.key("Entity").start_object();
crate::protocol_serde::shape_insight_entity::ser_insight_entity(&mut object_2, var_1)?;
object_2.finish();
}
if let Some(var_3) = &input.insight_id {
object.key("InsightId").string(var_3.as_str());
}
if let Some(var_4) = &input.show_html_content {
object.key("ShowHtmlContent").boolean(*var_4);
}
Ok(())
}