Flight.fromJson constructor
Flight.fromJson(
- Map json_
Implementation
Flight.fromJson(core.Map json_)
: this(
departureDate: json_.containsKey('departureDate')
? Date.fromJson(
json_['departureDate'] as core.Map<core.String, core.dynamic>)
: null,
destination: json_.containsKey('destination')
? json_['destination'] as core.String
: null,
flightNumber: json_.containsKey('flightNumber')
? json_['flightNumber'] as core.int
: null,
operatingCarrierCode: json_.containsKey('operatingCarrierCode')
? json_['operatingCarrierCode'] as core.String
: null,
origin: json_.containsKey('origin')
? json_['origin'] as core.String
: null,
);