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