FlightDelayContract class

Constructors

FlightDelayContract({required String airportIcao, required StatisticClass class_, required String medianDelay, List<PercentileBracketContract> delayPercentiles = const [], required int numConsideredFlights, List<DelayBracketContract> numFlightsDelayedBrackets = const [], required DateTime fromUtc, required DateTime toUtc, int? scheduledHourUtc})
Returns a new FlightDelayContract instance.

Properties

airportIcao String
ICAO code of the airport at which statistics is observed
getter/setter pair
class_ StatisticClass
getter/setter pair
delayPercentiles List<PercentileBracketContract>
Distribution of historic delays of the flight in percentiles from 5 percentile to 95 percentile in steps of 5 percentile, allowing for a more detailed analysis of delay patterns beyond simple averages or medians.
getter/setter pair
fromUtc DateTime
The beginning of the time range within which flght delay information is calculated (represented in UTC time)
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
medianDelay String
Median historic delay of the flight (format: -hh:mm:ss). Value can be negative (therefore, means early occurence).
getter/setter pair
numConsideredFlights int
The number of flight movements taken into account to calculate this statistics.
getter/setter pair
numFlightsDelayedBrackets List<DelayBracketContract>
Brackets containing information more detailed information about how many flights were delayed/early per specific delay range brackets (e.g. late from 15 to 30 minutes, from 30 to 60, etc.)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduledHourUtc int?
Hour on which flight is scheduled (represented in UTC). If provided, it separates the statistics for the same flight departing/arriving at different time of day on different days within the observed period.
getter/setter pair
toUtc DateTime
The end of the time range within which flght delay information is calculated (represented in UTC time)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) FlightDelayContract?
Returns a new FlightDelayContract instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<FlightDelayContract>
mapFromJson(dynamic json) Map<String, FlightDelayContract>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<FlightDelayContract>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.