pub fn ser_proxy_rule_group_attachment(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ProxyRuleGroupAttachment,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.proxy_rule_group_name {
object.key("ProxyRuleGroupName").string(var_1.as_str());
}
if let Some(var_2) = &input.insert_position {
object.key("InsertPosition").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_2).into()),
);
}
Ok(())
}