TripModel constructor

TripModel({
  1. required String? id,
  2. List<FlightModel>? flights,
  3. int? totalDuration,
  4. int? stops,
  5. double? mileageCost,
  6. double? totalTaxes,
  7. String? currency,
  8. double? onlinePrice,
  9. double? discountedPrice,
  10. String? discountedPercentage,
})

Implementation

TripModel({
  required this.id,
  this.flights,
  this.totalDuration,
  this.stops,
  this.mileageCost,
  this.totalTaxes,
  this.currency,
  this.onlinePrice,
  this.discountedPrice,
  this.discountedPercentage,
});