FlightQuoteItem class
Constructors
- FlightQuoteItem({required String publicId, int? quantity, String? name, Money? price, FlightQuoteItemDetails? details})
- Returns a new FlightQuoteItem instance.
Properties
- details ↔ FlightQuoteItemDetails?
-
The fare's terms, its bookable extras and the other fares on the same flights.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String?
-
"{route} · {dates} · {fare}", for example "LHR ⇄ JFK · 12–19 Dec · Economy Basic".
getter/setter pair
- price ↔ Money?
-
The unit price the order charges now for all passengers: the fare with its taxes, plus the paid extras in the item's
inputswhen they are sent.getter/setter pair - publicId ↔ String
-
The new
publicIdof the fare: it keepsprice's fare price, without paid extras, as the cap of an order withoutinputs.maxPrice, and expires atdetails.expiresAt.getter/setter pair - quantity ↔ int?
-
Always 1.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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) → FlightQuoteItem? -
Returns a new FlightQuoteItem instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< FlightQuoteItem> -
mapFromJson(
dynamic json) → Map< String, FlightQuoteItem> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< FlightQuoteItem> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.