TripModel constructor

TripModel({
  1. required String? id,
  2. List<FlightModel>? flights,
  3. int? totalDuration,
  4. int? stops,
  5. double? totalTaxes,
  6. String? currency,
  7. double? onlinePrice,
  8. double? discountedPrice,
  9. double? totalOnlinePrice,
  10. double? totalDiscountedPrice,
  11. String? discountedPercentage,
  12. double? totalDiscountedPriceBTC,
  13. bool? isDiscounted = false,
  14. int? totalMilesEarned,
  15. String? program,
  16. String? offerId,
  17. String? tripType,
  18. String? flightClass,
  19. String? flightSubClass,
  20. List<PricingOption>? pricingOptions,
})

Implementation

TripModel({
  required this.id,
  this.flights,
  this.totalDuration,
  this.stops,
  this.totalTaxes,
  this.currency,
  this.onlinePrice,
  this.discountedPrice,
  this.totalOnlinePrice,
  this.totalDiscountedPrice,
  this.discountedPercentage,
  this.totalDiscountedPriceBTC,
  this.isDiscounted = false,
  this.totalMilesEarned,
  this.program,
  this.offerId,
  this.tripType,
  this.flightClass,
  this.flightSubClass,
  this.pricingOptions,
});