toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'airportIcao'] = this.airportIcao;
json[r'class'] = this.class_;
json[r'medianDelay'] = this.medianDelay;
json[r'delayPercentiles'] = this.delayPercentiles;
json[r'numConsideredFlights'] = this.numConsideredFlights;
json[r'numFlightsDelayedBrackets'] = this.numFlightsDelayedBrackets;
json[r'fromUtc'] = this.fromUtc.toUtc().toIso8601String();
json[r'toUtc'] = this.toUtc.toUtc().toIso8601String();
if (this.scheduledHourUtc != null) {
json[r'scheduledHourUtc'] = this.scheduledHourUtc;
} else {
json[r'scheduledHourUtc'] = null;
}
return json;
}