HotelSearchFilters class

Constructors

HotelSearchFilters({int? minStarRating, int? maxStarRating, num? minPrice, num? maxPrice, List<HotelSearchFiltersBoardTypesEnum>? boardTypes = const [], List<HotelSearchFiltersCancellationTypesEnum>? cancellationTypes = const [], List<HotelSearchFiltersAmenityCodesEnum>? amenityCodes = const []})
Returns a new HotelSearchFilters instance.

Properties

amenityCodes ↔ List<HotelSearchFiltersAmenityCodesEnum>?
Amenity codes a hotel must have all of, as names such as FreeWifi; the codes are listed by hotels/amenities/catalog. A hotel without any amenity information never matches.
getter/setter pair
boardTypes ↔ List<HotelSearchFiltersBoardTypesEnum>?
Meal plans to keep; Unknown is not accepted.
getter/setter pair
cancellationTypes ↔ List<HotelSearchFiltersCancellationTypesEnum>?
Cancellation types to keep, by the offer's details.terms.cancellation.type: fullyRefundable, partiallyRefundable or nonRefundable. Not empty when sent; omit it to keep every type.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxPrice ↔ num?
Keeps rates whose price for the whole stay is at most this, in the search currency; greater than 0 and not below minPrice.
getter/setter pair
maxStarRating ↔ int?
Highest star rating to keep, 1–5; not below minStarRating.
getter/setter pair
minPrice ↔ num?
Keeps rates whose price for the whole stay is at least this, in the search currency; greater than 0.
getter/setter pair
minStarRating ↔ int?
Lowest star rating to keep, 1–5.
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) → HotelSearchFilters?
Returns a new HotelSearchFilters instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelSearchFilters>
mapFromJson(dynamic json) → Map<String, HotelSearchFilters>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelSearchFilters>>

Constants

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