toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
if (context != null) {
json[r'context'] = context;
}
if (type != null) {
json[r'type'] = type;
}
if (code != null) {
json[r'code'] = code;
}
if (version != null) {
json[r'version'] = version;
}
json[r'label'] = label;
return json;
}