RoomOccupancyInput class

Constructors

RoomOccupancyInput({int? adults, int? children, List<int>? childrenAges = const []})
Returns a new RoomOccupancyInput instance.

Properties

adults ↔ int?
Adults in the room, 1–9. Defaults to 2.
getter/setter pair
children ↔ int?
Children in the room, 0–9. Defaults to 0.
getter/setter pair
childrenAges ↔ List<int>?
One age (0–17) per child; omit or leave empty when there are no children. The guests named at booking must have the same ages.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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) → RoomOccupancyInput?
Returns a new RoomOccupancyInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RoomOccupancyInput>
mapFromJson(dynamic json) → Map<String, RoomOccupancyInput>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RoomOccupancyInput>>

Constants

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