FlightQuoteItemDetails class

Constructors

FlightQuoteItemDetails({DateTime? expiresAt, DateTime? quotedAt, bool? hasSeatMaps, BookingTerms? terms, List<Baggage> includedBaggage = const [], PriceBreakdown? priceBreakdown, List<AvailableService> availableServices = const [], List<FareOption> fareOptions = const []})
Returns a new FlightQuoteItemDetails instance.

Properties

availableServices ↔ List<AvailableService>
Paid extras such as bags. Send a service's id in the order's inputs.selectedServices.
getter/setter pair
expiresAt ↔ DateTime?
When the item's publicId and its services' ids expire; order before then.
getter/setter pair
fareOptions ↔ List<FareOption>
The fares on the same flights sold by the same airline, cheapest first and including the quoted one, each with its own publicId to quote or order.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hasSeatMaps ↔ bool?
Whether the seat map of the item's publicId offers seats to choose.
getter/setter pair
includedBaggage ↔ List<Baggage>
Baggage included for every passenger.
getter/setter pair
priceBreakdown ↔ PriceBreakdown?
Base fare and taxes of the fare, without paid extras; null when the airline gives no split.
getter/setter pair
quotedAt ↔ DateTime?
When the airline priced the fare for this quote.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terms ↔ BookingTerms?
How the item is paid (always payNow), what cancelling it gives back and whether it can be changed, on the item's price (the fare and any paid extras) in the quote currency, OpenRoam's fees included. The order item keeps them.
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) → FlightQuoteItemDetails?
Returns a new FlightQuoteItemDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightQuoteItemDetails>
mapFromJson(dynamic json) → Map<String, FlightQuoteItemDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightQuoteItemDetails>>

Constants

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