toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (departureDate != null) 'departureDate': departureDate!,
if (destination != null) 'destination': destination!,
if (flightNumber != null) 'flightNumber': flightNumber!,
if (operatingCarrierCode != null)
'operatingCarrierCode': operatingCarrierCode!,
if (origin != null) 'origin': origin!,
};