HotelDetails class

Constructors

HotelDetails({num? starRating, Address? address, Coordinates? coordinates, List<String> imageUrls = const [], List<HotelAmenityGroup> amenityGroups = const [], HotelContact? contact, UnitAvailability? displayGroup})
Returns a new HotelDetails instance.

Properties

address ↔ Address?
The hotel's address; null when not known.
getter/setter pair
amenityGroups ↔ List<HotelAmenityGroup>
The hotel's amenities as codes in display groups; label them from hotels/amenities/catalog.
getter/setter pair
contact ↔ HotelContact?
The hotel's phone, email and website; null when none is known.
getter/setter pair
coordinates ↔ Coordinates?
The hotel's position; null when not known.
getter/setter pair
displayGroup ↔ UnitAvailability?
Dashboard only: set on a card that stands for several bookable units, which hotels/groups/{id} lists; null otherwise.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
imageUrls ↔ List<String>
Gallery images hosted by OpenRoam. A location-search page carries at most the first one.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
starRating ↔ num?
Star rating, for example 4 or 4.5; null when not known.
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) → HotelDetails?
Returns a new HotelDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelDetails>
mapFromJson(dynamic json) → Map<String, HotelDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelDetails>>

Constants

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