FlightOfferDetails class

Constructors

FlightOfferDetails({DateTime? expiresAt, FlightOfferDetailsCabinClassEnum? cabinClass, Fare? fare, BookingTerms? terms, List<Baggage> includedBaggage = const [], PriceBreakdown? priceBreakdown, List<PassengerPricing> passengerPricing = const [], List<OfferPassenger> offerPassengers = const [], List<AvailableService> availableServices = const [], bool? identityDocumentsRequired, List<String> supportedDocumentTypes = const [], List<SegmentFare> segments = const []})
Returns a new FlightOfferDetails instance.

Properties

availableServices ↔ List<AvailableService>
Paid extras; empty in search. Quote the fare to list them.
getter/setter pair
cabinClass ↔ FlightOfferDetailsCabinClassEnum?
economy, premiumEconomy, business or first.
getter/setter pair
expiresAt ↔ DateTime?
When the fare's publicId expires; quote or order it before then.
getter/setter pair
fare ↔ Fare?
Fare basis, brand, fare family and validating carrier, as far as the airline gives them.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
identityDocumentsRequired ↔ bool?
Whether every passenger needs an identity document to book.
getter/setter pair
includedBaggage ↔ List<Baggage>
Baggage included for every passenger.
getter/setter pair
offerPassengers ↔ List<OfferPassenger>
The passengers the fare is priced for; passengerIndex names them in the order inputs.
getter/setter pair
passengerPricing ↔ List<PassengerPricing>
Price per passenger type.
getter/setter pair
priceBreakdown ↔ PriceBreakdown?
Base fare and taxes of price; null when the airline gives no split.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments ↔ List<SegmentFare>
Cabin and baggage on each segment of this fare, with 1-based slice and segment positions.
getter/setter pair
supportedDocumentTypes ↔ List<String>
The document types the airline takes: passport, taxId, knownTravelerNumber or passengerRedressNumber.
getter/setter pair
terms ↔ BookingTerms?
How the fare is paid (always payNow), what cancelling it gives back and whether it can be changed, at the fare's price in the search currency, OpenRoam's fees included.
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) → FlightOfferDetails?
Returns a new FlightOfferDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightOfferDetails>
mapFromJson(dynamic json) → Map<String, FlightOfferDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightOfferDetails>>

Constants

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