toJson method
Implementation
Map<String, Object?> toJson() {
var type = this.type;
var field = this.field;
final json = <String, Object?>{};
if (type != null) {
json[r'type'] = type;
}
if (field != null) {
json[r'field'] = field.toJson();
}
return json;
}