toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (code != null) {
json[r'code'] = code;
}
if (type != null) {
json[r'type'] = type;
}
if (name != null) {
json[r'name'] = name;
}
if (definition != null) {
json[r'definition'] = definition;
}
if (url != null) {
json[r'url'] = url;
}
return json;
}