FlightHeader.fromJson constructor

FlightHeader.fromJson(
  1. Map json_
)

Implementation

FlightHeader.fromJson(core.Map json_)
    : this(
        carrier: json_.containsKey('carrier')
            ? FlightCarrier.fromJson(
                json_['carrier'] as core.Map<core.String, core.dynamic>)
            : null,
        flightNumber: json_.containsKey('flightNumber')
            ? json_['flightNumber'] as core.String
            : null,
        flightNumberDisplayOverride:
            json_.containsKey('flightNumberDisplayOverride')
                ? json_['flightNumberDisplayOverride'] as core.String
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        operatingCarrier: json_.containsKey('operatingCarrier')
            ? FlightCarrier.fromJson(json_['operatingCarrier']
                as core.Map<core.String, core.dynamic>)
            : null,
        operatingFlightNumber: json_.containsKey('operatingFlightNumber')
            ? json_['operatingFlightNumber'] as core.String
            : null,
      );