Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.2 KB

File metadata and controls

33 lines (24 loc) · 1.2 KB

HotelReviews

Aggregate guest rating and review breakdown when present.

Properties

Name Type Description Notes
rating float Aggregate guest rating, typically on a 0-5 scale. [optional]
votes_count int Number of guest votes behind the rating. [optional]
rating_distribution Dict[str, float] Vote counts keyed by star rating ("1"-"5") when present. [optional]
extras Dict [optional]

Example

from unifapi.models.hotel_reviews import HotelReviews

# TODO update the JSON string below
json = "{}"
# create an instance of HotelReviews from a JSON string
hotel_reviews_instance = HotelReviews.from_json(json)
# print the JSON string representation of the object
print(HotelReviews.to_json())

# convert the object into a dict
hotel_reviews_dict = hotel_reviews_instance.to_dict()
# create an instance of HotelReviews from a dict
hotel_reviews_from_dict = HotelReviews.from_dict(hotel_reviews_dict)

[Back to Model list] [Back to API list] [Back to README]