// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_budget_action_to_remove(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::BudgetActionToRemove,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("type").string(input.r#type.as_str());
}
{
object.key("thresholdPercentage").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::Float((input.threshold_percentage).into()),
);
}
Ok(())
}