SelectedService class

Constructors

SelectedService({SelectedServiceTypeEnum? type, String? label, int? passengerIndex, int? sliceIndex, int? segmentIndex, int? quantity})
Returns a new SelectedService instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
label ↔ String?
What was bought, for example 1 × 23 kg.
getter/setter pair
passengerIndex ↔ int?
The passenger the service is for; null when it is not tied to one passenger.
getter/setter pair
quantity ↔ int?
Units bought.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segmentIndex ↔ int?
The segment within that slice; null when it is not tied to one segment.
getter/setter pair
sliceIndex ↔ int?
The slice of the segment the service is for; null when it is not tied to one segment.
getter/setter pair
type ↔ SelectedServiceTypeEnum?
The service type: baggage, meal, seat or other; null when unknown.
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) → SelectedService?
Returns a new SelectedService instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SelectedService>
mapFromJson(dynamic json) → Map<String, SelectedService>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SelectedService>>

Constants

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