toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var name = this.name;
  var oldValue = this.oldValue;
  var hiddenOldValue = this.hiddenOldValue;
  var newValue = this.newValue;
  var hiddenNewValue = this.hiddenNewValue;

  final json = <String, Object?>{};
  json[r'name'] = name;
  json[r'oldValue'] = oldValue;
  if (hiddenOldValue != null) {
    json[r'hiddenOldValue'] = hiddenOldValue;
  }
  json[r'newValue'] = newValue;
  if (hiddenNewValue != null) {
    json[r'hiddenNewValue'] = hiddenNewValue;
  }
  return json;
}