toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var field = this.field;
  var fieldId = this.fieldId;
  var fieldtype = this.fieldtype;
  var from = this.from;
  var fromString = this.fromString;
  var to = this.to;
  var toString$ = this.toString$;

  final json = <String, Object?>{};
  if (field != null) {
    json[r'field'] = field;
  }
  if (fieldId != null) {
    json[r'fieldId'] = fieldId;
  }
  if (fieldtype != null) {
    json[r'fieldtype'] = fieldtype;
  }
  if (from != null) {
    json[r'from'] = from;
  }
  if (fromString != null) {
    json[r'fromString'] = fromString;
  }
  if (to != null) {
    json[r'to'] = to;
  }
  if (toString$ != null) {
    json[r'toString'] = toString$;
  }
  return json;
}