HotelInputs class
Constructors
-
HotelInputs({required LeadGuestInput holder, List<
RoomGuestsInput> roomGuests = const [], String? specialRequests, List<String> ? specialRequestCodes = const [], MoneyInput? maxPrice}) - Returns a new HotelInputs instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- holder ↔ LeadGuestInput
-
The lead guest: the booking is made in this name and the hotel contacts this person.
getter/setter pair
- maxPrice ↔ MoneyInput?
-
Optional highest accepted unit price, in the order or cart currency; a higher current unit price gives 409 / 11002.
getter/setter pair
-
roomGuests
↔ List<
RoomGuestsInput> -
Exactly one entry per searched room, with
roomIndex1 to N. Each room's guests must match its searched adults, children and child ages.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
specialRequestCodes
↔ List<
String> ? -
Opaque codes from the rate's specialRequestOptions, applied to every room. Up to 32 distinct codes.
getter/setter pair
- specialRequests ↔ String?
-
Free-text requests for the hotel, up to 500 characters.
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) → HotelInputs? -
Returns a new HotelInputs instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< HotelInputs> -
mapFromJson(
dynamic json) → Map< String, HotelInputs> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< HotelInputs> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.