GuestInput class

Constructors

GuestInput({String? nationality, String? countryOfResidence, String? title, required String firstName, required String lastName, String? middleName, int? age})
Returns a new GuestInput instance.

Properties

age ↔ int?
Age in years. Send it for every child: the children's ages must match the search's childrenAges.
getter/setter pair
countryOfResidence ↔ String?
Optional two-letter ISO 3166-1 alpha-2 country of residence. Some rates are priced for one guest market and then require it to match the search's country of residence.
getter/setter pair
firstName ↔ String
First name.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
lastName ↔ String
Last name.
getter/setter pair
middleName ↔ String?
Middle name, if any.
getter/setter pair
nationality ↔ String?
Optional two-letter ISO 3166-1 alpha-2 nationality. Some rates are priced for one guest market and then require it to match the search's guestNationality.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String?
Title, for example Mr, Mrs or Miss.
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) → GuestInput?
Returns a new GuestInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GuestInput>
mapFromJson(dynamic json) → Map<String, GuestInput>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GuestInput>>

Constants

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