FlightPurchasedDetails class

Constructors

FlightPurchasedDetails({BookedAirline? owner, List<BookedSlice> slices = const [], FlightPurchasedDetailsCabinClassEnum? cabinClass, BookingTerms? terms, List<BookedBaggage> includedBaggage = const [], List<SelectedService> selectedServices = const [], List<PriceLine> priceLines = const [], int? totalDurationMinutes, int? totalStops})
Returns a new FlightPurchasedDetails instance.

Properties

cabinClass ↔ FlightPurchasedDetailsCabinClassEnum?
The fare's cabin.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
includedBaggage ↔ List<BookedBaggage>
Baggage included for every passenger.
getter/setter pair
owner ↔ BookedAirline?
The airline that sold the fare.
getter/setter pair
priceLines ↔ List<PriceLine>
What the item cost, line by line, in the order currency; the amounts add up to its price.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedServices ↔ List<SelectedService>
The paid extras bought, in the order of inputs.selectedServices, each with a label such as 1 × 23 kg.
getter/setter pair
slices ↔ List<BookedSlice>
The flights bought, in order. They stay as bought; the result's booking has the flights booked now.
getter/setter pair
terms ↔ BookingTerms?
The terms the item was bought on, as quoted: always payNow, what cancelling gives back and whether it can be changed, in the order currency, OpenRoam's fees included.
getter/setter pair
totalDurationMinutes ↔ int?
Flying and connection time across all slices.
getter/setter pair
totalStops ↔ int?
Connections across all slices.
getter/setter pair

Methods

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.
override

Operators

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

Static Methods

fromJson(dynamic value) → FlightPurchasedDetails?
Returns a new FlightPurchasedDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightPurchasedDetails>
mapFromJson(dynamic json) → Map<String, FlightPurchasedDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightPurchasedDetails>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.