Itinerary class

Constructors

Itinerary({String? id, String? name, String? countryCode, String? category, String? logoUrl, String? description, List<FlightOffer> offers = const [], ItineraryDetails? details})
Returns a new Itinerary instance.

Properties

category ↔ String?
Always null: trip type and market are fixed by the request.
getter/setter pair
countryCode ↔ String?
ISO 3166-1 alpha-2 country of the trip's destination; null when unknown.
getter/setter pair
description ↔ String?
Always null.
getter/setter pair
details ↔ ItineraryDetails?
The flights and the airlines, shared by every fare.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
Search-scoped itinerary id (flight_it_…), new in every response; quote, order and the seat map reject it with 400 / 11004.
getter/setter pair
logoUrl ↔ String?
The owning airline's logo, or null.
getter/setter pair
name ↔ String?
"{route} · {dates} · {airline}", for example "LHR ⇄ JFK · 12–19 Dec · British Airways".
getter/setter pair
offers ↔ List<FlightOffer>
The fares bookable on this itinerary, cheapest first.
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) → Itinerary?
Returns a new Itinerary instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Itinerary>
mapFromJson(dynamic json) → Map<String, Itinerary>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Itinerary>>

Constants

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