Flights constructor

Flights({
  1. String? id,
  2. String? departureDate,
  3. String? departureTime,
  4. String? arrivalDate,
  5. String? arrivalTime,
  6. String? airlineName,
  7. String? airlineLogoURL,
  8. String? flightCode,
  9. int? milesEarned,
  10. String? flightClass,
  11. String? flightType,
  12. String? createdAt,
  13. String? updatedAt,
  14. List<FromAirport>? fromAirport,
  15. List<FromAirport>? toAirport,
  16. String? travelTime,
  17. String? aircraftName,
  18. int? layoverDuration,
  19. String? airlineCode,
  20. ExtraServices? extras,
  21. String? originTerminal,
  22. String? destinationTerminal,
})

Implementation

Flights(
    {this.id,
    this.departureDate,
    this.departureTime,
    this.arrivalDate,
    this.arrivalTime,
    this.airlineName,
    this.airlineLogoURL,
    this.flightCode,
    this.milesEarned,
    this.flightClass,
    this.flightType,
    this.createdAt,
    this.updatedAt,
    this.fromAirport,
    this.toAirport,
    this.travelTime,
    this.aircraftName,
    this.layoverDuration,
    this.airlineCode,
    this.extras,
    this.originTerminal,
    this.destinationTerminal
    });