FlightBooking class
Constructors
-
FlightBooking({List<
BookedSlice> slices = const [], FlightBookingCabinClassEnum? cabinClass, List<Passenger> passengers = const [], BookingTerms? terms, List<BookedBaggage> includedBaggage = const [], List<SelectedService> selectedServices = const [], int? totalDurationMinutes, int? totalStops}) - Returns a new FlightBooking instance.
Properties
- cabinClass ↔ FlightBookingCabinClassEnum?
-
The cabin booked now.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
includedBaggage
↔ List<
BookedBaggage> -
Baggage included for every passenger now.
getter/setter pair
-
passengers
↔ List<
Passenger> -
The passengers booked now, in
passengerIndexorder, contacts masked.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedServices
↔ List<
SelectedService> -
The paid extras booked now; positions refer to
slices.getter/setter pair -
slices
↔ List<
BookedSlice> -
The flights booked now, in the shape of
purchasedProduct.details.slices.getter/setter pair - terms ↔ BookingTerms?
-
The terms the item was bought on, as
purchasedProduct.details.termsstates them; they never change after the purchase.getter/setter pair - totalDurationMinutes ↔ int?
-
Flying and connection time across all slices booked now.
getter/setter pair
- totalStops ↔ int?
-
Connections across all slices booked now.
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) → FlightBooking? -
Returns a new FlightBooking instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< FlightBooking> -
mapFromJson(
dynamic json) → Map< String, FlightBooking> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< FlightBooking> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.