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? flightOptionId,
  13. String? createdAt,
  14. String? updatedAt,
  15. List<Airports>? fromAirport,
  16. List<Airports>? toAirport,
  17. String? travelTime,
  18. String? aircraftName,
  19. int? layoverDuration,
  20. String? airlineCode,
})

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.flightOptionId,
    this.createdAt,
    this.updatedAt,
    this.fromAirport,
    this.toAirport,
    this.travelTime,
    this.aircraftName,
    this.layoverDuration,
    this.airlineCode,
    });