toJson method
Implementation
Map<String, Object?> toJson() {
var field = this.field;
var fieldtype = this.fieldtype;
var fieldId = this.fieldId;
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 (fieldtype != null) {
json[r'fieldtype'] = fieldtype;
}
if (fieldId != null) {
json[r'fieldId'] = fieldId;
}
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;
}