AmenityGroup class

Constructors

AmenityGroup({String? key, String? label, List<String> codes = const []})
Returns a new AmenityGroup instance.

Properties

codes ↔ List<String>
Canonical amenity codes in this group that have positive candidate counts.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
key ↔ String?
Stable group key, as listed by hotels/amenities/catalog.
getter/setter pair
label ↔ String?
Display text in the request's language.
getter/setter pair
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) → AmenityGroup?
Returns a new AmenityGroup instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AmenityGroup>
mapFromJson(dynamic json) → Map<String, AmenityGroup>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AmenityGroup>>

Constants

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