FlightOffer class

Constructors

FlightOffer({String? publicId, String? name, String? description, OfferPrice? price, FlightOfferDetails? details})
Returns a new FlightOffer instance.

Properties

description ↔ String?
Always null.
getter/setter pair
details ↔ FlightOfferDetails?
The fare's terms.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
The fare's brand with its cabin, for example "Economy Basic"; the cabin alone when the fare has no brand.
getter/setter pair
price ↔ OfferPrice?
Indicative price for all passengers, in the search currency.
getter/setter pair
publicId ↔ String?
The fare's opaque id: quote, order and the seat map take it.
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) → FlightOffer?
Returns a new FlightOffer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightOffer>
mapFromJson(dynamic json) → Map<String, FlightOffer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightOffer>>

Constants

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