toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (carrier != null) 'carrier': carrier!,
      if (flightNumber != null) 'flightNumber': flightNumber!,
      if (flightNumberDisplayOverride != null)
        'flightNumberDisplayOverride': flightNumberDisplayOverride!,
      if (kind != null) 'kind': kind!,
      if (operatingCarrier != null) 'operatingCarrier': operatingCarrier!,
      if (operatingFlightNumber != null)
        'operatingFlightNumber': operatingFlightNumber!,
    };