FlightSearchSlice class

Constructors

FlightSearchSlice({required String origin, required String destination, required DateTime departureDate})
Returns a new FlightSearchSlice instance.

Properties

departureDate ↔ DateTime
Local departure date (yyyy-MM-dd); today or later.
getter/setter pair
destination ↔ String
Three-letter IATA airport or city code to arrive at.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
origin ↔ String
Three-letter IATA airport or city code to depart from.
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) → FlightSearchSlice?
Returns a new FlightSearchSlice instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightSearchSlice>
mapFromJson(dynamic json) → Map<String, FlightSearchSlice>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightSearchSlice>>

Constants

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