HotelSearchResult class

Constructors

HotelSearchResult({List<Hotel> items = const [], Pagination? pagination, String? nextCursor, HotelSearchDetails? details})
Returns a new HotelSearchResult instance.

Properties

details ↔ HotelSearchDetails?
Hotel search facts outside the keys every partner service shares.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
items ↔ List<Hotel>
The hotels of this page, each with its offers.
getter/setter pair
nextCursor ↔ String?
Send it back as cursor, with the same body, for the next page; null on the last page. A location page can hold fewer hotels than the limit, even none, while it is set.
getter/setter pair
pagination ↔ Pagination?
Where this page sits. On a location search totalCount counts the candidate hotels of the area, an upper bound of what the pages list.
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) → HotelSearchResult?
Returns a new HotelSearchResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelSearchResult>
mapFromJson(dynamic json) → Map<String, HotelSearchResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelSearchResult>>

Constants

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