FlightSearchRequest class

Constructors

FlightSearchRequest({List<FlightSearchSlice> slices = const [], List<FlightSearchPassenger> passengers = const [], FlightSearchRequestCabinClassEnum? cabinClass, FlightSearchFilters? filters, int? page, int? limit, String? currency})
Returns a new FlightSearchRequest instance.

Properties

cabinClass ↔ FlightSearchRequestCabinClassEnum?
Cabin to search: economy, premiumEconomy, business or first. Optional.
getter/setter pair
currency ↔ String?
Three-letter ISO 4217 price currency, in either case; the API key's currency when omitted or blank. An unsupported code gives 404 / 10004.
getter/setter pair
filters ↔ FlightSearchFilters?
Optional filters. maxStops, preferredAirlines and excludedAirlines select itineraries; refundableOnly and maxPrice select fares, and an itinerary left without a fare is not returned.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
limit ↔ int?
Itineraries per page, 1 to 100; default 10.
getter/setter pair
page ↔ int?
Page of itineraries, from 1; default 1.
getter/setter pair
passengers ↔ List<FlightSearchPassenger>
One entry per traveller; at least one must be an adult.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slices ↔ List<FlightSearchSlice>
One entry per flight of the trip: one for one-way, two for a return, more for a multi-city trip. At least one.
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) → FlightSearchRequest?
Returns a new FlightSearchRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightSearchRequest>
mapFromJson(dynamic json) → Map<String, FlightSearchRequest>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightSearchRequest>>

Constants

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