toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var changedFrom = this.changedFrom;
  var changedTo = this.changedTo;
  var fieldName = this.fieldName;

  final json = <String, Object?>{};
  if (changedFrom != null) {
    json[r'changedFrom'] = changedFrom;
  }
  if (changedTo != null) {
    json[r'changedTo'] = changedTo;
  }
  if (fieldName != null) {
    json[r'fieldName'] = fieldName;
  }
  return json;
}