HotelPurchasedDetails class

Constructors

HotelPurchasedDetails({DateTime? checkInDate, DateTime? checkOutDate, List<RoomOccupancy> requestedRooms = const [], BookedHotel? hotel, BookingTerms? terms, QuotedRate? rate})
Returns a new HotelPurchasedDetails instance.

Properties

checkInDate ↔ DateTime?
The check-in date bought.
getter/setter pair
checkOutDate ↔ DateTime?
The check-out date bought.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hotel ↔ BookedHotel?
The hotel of the stay.
getter/setter pair
rate ↔ QuotedRate?
The rate bought: rooms, board, taxes, nightly prices and surcharges, as on the quote.
getter/setter pair
requestedRooms ↔ List<RoomOccupancy>
The rooms bought, in room order: adults, children and child ages, in the quote's requestedRooms shape.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terms ↔ BookingTerms?
The terms the stay was bought on, as quoted: they do not change when a free window later closes.
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) → HotelPurchasedDetails?
Returns a new HotelPurchasedDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelPurchasedDetails>
mapFromJson(dynamic json) → Map<String, HotelPurchasedDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelPurchasedDetails>>

Constants

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