TripModel class

Constructors

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})
TripModel.fromJson(Map<String, dynamic> json)

Properties

currency ↔ String?
getter/setter pair
discountedPercentage ↔ String?
getter/setter pair
discountedPrice ↔ double?
getter/setter pair
flightClass ↔ String?
getter/setter pair
flights ↔ List<FlightModel>?
getter/setter pair
flightSubClass ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pair
isDiscounted ↔ bool?
getter/setter pair
isNonDiscounted → bool
no setter
isRoundTrip → bool
no setter
offerId ↔ String?
getter/setter pair
onlinePrice ↔ double?
getter/setter pair
powerAvaialbleForTrip → bool
no setter
pricingOptions ↔ List<PricingOption>?
getter/setter pair
program ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seatAvaialbleForTrip → bool
no setter
stops ↔ int?
getter/setter pair
subClass → String
no setter
totalDiscountedPrice ↔ double?
getter/setter pair
totalDiscountedPriceBTC ↔ double?
getter/setter pair
totalDuration ↔ int?
getter/setter pair
totalLayoverDuration → int
no setter
totalMilesEarned ↔ int?
getter/setter pair
totalOnlinePrice ↔ double?
getter/setter pair
totalTaxes ↔ double?
getter/setter pair
tripType ↔ String?
getter/setter pair
wifiAvaialbleForTrip → bool
no setter

Methods

formatFlightSubclass(String flightClass, String flightSubClass) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited