HotelQuoteItem class

Constructors

HotelQuoteItem({required String publicId, int? quantity, String? name, Money? price, HotelQuoteItemDetails? details})
Returns a new HotelQuoteItem instance.

Properties

details ↔ HotelQuoteItemDetails?
The quoted stay and the rate's terms.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
\"{hotel} · {offer}\", the hotel's name and the offer's name, for example Hotel Arts Barcelona · Deluxe King, Breakfast, Free cancellation.
getter/setter pair
price ↔ Money?
Price for the whole stay, all rooms and nights, in the quote currency. An order of the returned publicId without inputs.maxPrice is refused if the rate then costs more.
getter/setter pair
publicId ↔ String
A new opaque offer ID (hotel_…) for the rate at this price, which replaces the one the request sent: order with it before details.expiresAt.
getter/setter pair
quantity ↔ int?
Always 1: an item books one rate.
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) → HotelQuoteItem?
Returns a new HotelQuoteItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelQuoteItem>
mapFromJson(dynamic json) → Map<String, HotelQuoteItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelQuoteItem>>

Constants

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