TripModel constructor
TripModel({ - required String? id,
- List<FlightModel>? flights,
- int? totalDuration,
- int? stops,
- double? totalTaxes,
- String? currency,
- double? onlinePrice,
- double? discountedPrice,
- double? totalOnlinePrice,
- double? totalDiscountedPrice,
- String? discountedPercentage,
- double? totalDiscountedPriceBTC,
- bool? isDiscounted = false,
- int? totalMilesEarned,
- String? program,
- String? offerId,
- String? tripType,
- String? flightClass,
- String? flightSubClass,
- 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,
});