HotelOffer class

Constructors

HotelOffer({String? publicId, String? name, String? description, OfferPrice? price, HotelOfferDetails? details})
Returns a new HotelOffer instance.

Properties

description ↔ String?
Always null.
getter/setter pair
details ↔ HotelOfferDetails?
The rate's terms.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
\"{rooms}, {board}, {terms}\", for example Deluxe King, Breakfast, Free cancellation. The terms are Free cancellation when details.terms.cancellation.type is fullyRefundable and Non-refundable when it is nonRefundable; a partially refundable rate has none.
getter/setter pair
price ↔ OfferPrice?
Price for the whole stay, all rooms and nights, in the search currency. Indicative: quote and order price the rate again.
getter/setter pair
publicId ↔ String?
Opaque offer ID (hotel_…) to quote or order, valid until details.expiresAt; pass it back unchanged. It identifies this rate, not the hotel.
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) → HotelOffer?
Returns a new HotelOffer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelOffer>
mapFromJson(dynamic json) → Map<String, HotelOffer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelOffer>>

Constants

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