HotelPurchasedProduct class
Constructors
- HotelPurchasedProduct({String? name, String? countryCode, String? logoUrl, HotelPurchasedInputs? inputs, HotelPurchasedDetails? details})
- Returns a new HotelPurchasedProduct instance.
Properties
- countryCode ↔ String?
-
ISO 3166-1 alpha-2 code of the hotel's country, in upper case; null when it is unknown.
getter/setter pair
- details ↔ HotelPurchasedDetails?
-
The stay, the hotel and the rate bought.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- inputs ↔ HotelPurchasedInputs?
-
The item's inputs, with the holder's email and phone masked.
getter/setter pair
- logoUrl ↔ String?
-
The hotel's main image; null when it has none.
getter/setter pair
- name ↔ String?
-
\"{hotel} · {offer}\", named as the quote names it, for exampleHotel Arts Barcelona · Deluxe King, Breakfast, Free cancellation.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) → HotelPurchasedProduct? -
Returns a new HotelPurchasedProduct instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< HotelPurchasedProduct> -
mapFromJson(
dynamic json) → Map< String, HotelPurchasedProduct> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< HotelPurchasedProduct> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.