FlightSearchFilters class

Constructors

FlightSearchFilters({int? maxStops, List<String>? preferredAirlines = const [], List<String>? excludedAirlines = const [], bool? refundableOnly, num? maxPrice})
Returns a new FlightSearchFilters instance.

Properties

excludedAirlines ↔ List<String>?
Two-letter IATA airline codes; drops itineraries sold, marketed or flown by any of them.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxPrice ↔ num?
Keeps fares whose price for all passengers is at most this, in the search currency; greater than 0.
getter/setter pair
maxStops ↔ int?
Keeps itineraries with at most this many connections in total; 0 for direct flights only.
getter/setter pair
preferredAirlines ↔ List<String>?
Two-letter IATA airline codes; keeps itineraries sold, marketed or flown by at least one of them.
getter/setter pair
refundableOnly ↔ bool?
When true, keeps only fares whose terms.cancellation.type is not nonRefundable.
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) → FlightSearchFilters?
Returns a new FlightSearchFilters instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightSearchFilters>
mapFromJson(dynamic json) → Map<String, FlightSearchFilters>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightSearchFilters>>

Constants

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