BookedHotel class
Constructors
-
BookedHotel({String? name, num? starRating, Address? address, Coordinates? coordinates, String? description, List<
String> imageUrls = const [], List<HotelAmenityGroup> amenityGroups = const [], HotelContact? contact}) - Returns a new BookedHotel instance.
Properties
- address ↔ Address?
-
The hotel's address; null when unknown.
getter/setter pair
-
amenityGroups
↔ List<
HotelAmenityGroup> -
The amenities stored at purchase, 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 unknown.
getter/setter pair
- coordinates ↔ Coordinates?
-
The hotel's location; null when unknown.
getter/setter pair
- description ↔ String?
-
The hotel description stored at purchase, in HTML; null when there was none.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
imageUrls
↔ List<
String> -
The gallery images stored at purchase.
getter/setter pair
- name ↔ String?
-
The hotel's name, the first part of the purchased product's
name.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starRating ↔ num?
-
The hotel's star rating; null when unknown.
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) → BookedHotel? -
Returns a new BookedHotel instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< BookedHotel> -
mapFromJson(
dynamic json) → Map< String, BookedHotel> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< BookedHotel> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.