pub fn ser_record_patch(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::RecordPatch,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
object.key("Op").string(input.op.as_str());
}
{
object.key("Key").string(input.key.as_str());
}
if let Some(var_1) = &input.value {
object.key("Value").string(var_1.as_str());
}
{
object.key("SyncCount").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((input.sync_count).into()),
);
}
if let Some(var_2) = &input.device_last_modified_date {
object
.key("DeviceLastModifiedDate")
.date_time(var_2, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
}
Ok(())
}