HotelDestination class
Constructors
- HotelDestination({String? id, String? name, String? countryCode, HotelDestinationCategoryEnum? category, String? logoUrl})
- Returns a new HotelDestination instance.
Properties
- category ↔ HotelDestinationCategoryEnum?
-
The place's level:
country,region,cityorarea(a district or neighbourhood).getter/setter pair - countryCode ↔ String?
-
The ISO 3166-1 alpha-2 code of the place's country, or null when it is not known.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
The place's ID (a UUID). Send it as
searchCriteria.location.geoNodeIdin a hotel search; it finds the hotels of every place inside this one. Stable: it can be stored.getter/setter pair - logoUrl ↔ String?
-
Always null: places have no image.
getter/setter pair
- name ↔ String?
-
The place with its parents, for example
Downtown Dubai, Dubai, United Arab Emirates.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) → HotelDestination? -
Returns a new HotelDestination instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< HotelDestination> -
mapFromJson(
dynamic json) → Map< String, HotelDestination> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< HotelDestination> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.