toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'number'] = this.number;
if (this.origins != null) {
json[r'origins'] = this.origins;
} else {
json[r'origins'] = null;
}
if (this.destinations != null) {
json[r'destinations'] = this.destinations;
} else {
json[r'destinations'] = null;
}
return json;
}