message: Mustache templating: serialize_object.mustache
diff: {{#required}}
  -{{#toUpper}}{{type}}{{/toUpper}}::write(&object.{{#toRustProp}}{{#toLower}}{{name}}{{/toLower}}{{/toRustProp}}, writer);
  +{{#toUpper}}{{type}}{{/toUpper}}::write(&input.{{#toRustProp}}{{#toLower}}{{name}}{{/toLower}}{{/toRustProp}}, writer);
  {{/required}}
  {{^required}}
  -if object.{{#toRustProp}}{{#toLower}}{{name}}{{/toLower}}{{/toRustProp}}.is_some() {
  - {{#toUpper}}{{type}}{{/toUpper}}::write(object.{{#toLower}}{{name}}{{/toLower}}.as_ref().unwrap(), writer);
  +if input.{{#toRustProp}}{{#toLower}}{{name}}{{/toLower}}{{/toRustProp}}.is_some() {
  + {{#toUpper}}{{type}}{{/toUpper}}::write(input.{{#toLower}}{{name}}{{/toLower}}.as_ref().as_ref().unwrap(), writer);
  } else {
  writer.write_nil();
  }
  