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