toJson method

Map<String, dynamic> toJson()

Implementation

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