toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'type'] = this.type;
json[r'required'] = this.required_;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.fields != null) {
json[r'fields'] = this.fields;
} else {
json[r'fields'] = null;
}
return json;
}