SelectedServiceInput class

Constructors

SelectedServiceInput({String? id, SelectedServiceInputTypeEnum? type, int? passengerIndex, int? sliceIndex, int? segmentIndex, int? quantity})
Returns a new SelectedServiceInput instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
The service's id from the quote item's details.availableServices, valid until the offer expires; null when the service is chosen by type.
getter/setter pair
passengerIndex ↔ int?
1-based position of the passenger the service is for; null when it is not tied to one passenger. A request may leave it out when the service id names one passenger.
getter/setter pair
quantity ↔ int?
Units, greater than 0 and at most the service's maxQuantity; defaults to 1.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segmentIndex ↔ int?
1-based position of the segment within the slice, with sliceIndex; null when the service is not tied to one segment.
getter/setter pair
sliceIndex ↔ int?
1-based position of the slice, with segmentIndex; null when the service is not tied to one segment.
getter/setter pair
type ↔ SelectedServiceInputTypeEnum?
The service type, for example baggage or meal; it chooses the service when no id is sent.
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) → SelectedServiceInput?
Returns a new SelectedServiceInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SelectedServiceInput>
mapFromJson(dynamic json) → Map<String, SelectedServiceInput>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SelectedServiceInput>>

Constants

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