toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.airport != null) {
json[r'airport'] = this.airport;
} else {
json[r'airport'] = null;
}
if (this.arrivingAt != null) {
json[r'arrivingAt'] = this.arrivingAt!.toUtc().toIso8601String();
} else {
json[r'arrivingAt'] = null;
}
if (this.departingAt != null) {
json[r'departingAt'] = this.departingAt!.toUtc().toIso8601String();
} else {
json[r'departingAt'] = null;
}
if (this.durationMinutes != null) {
json[r'durationMinutes'] = this.durationMinutes;
} else {
json[r'durationMinutes'] = null;
}
return json;
}