PlaceReview class

A review of the place submitted by a user.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

PlaceReview({required String authorName, required int rating, required String relativeTimeDescription, required int time, String? authorUrl, String? language, String? originalLanguage, String? profilePhotoUrl, String? text, bool? translated})
const
PlaceReview.fromJson(Map<String, dynamic> json)
factory

Properties

authorName String
The name of the user who submitted the review. Anonymous reviews are attributed to "A Google user".
final
authorUrl String?
The URL to the user's Google Maps Local Guides profile, if available.
final
hashCode int
The hash code for this object.
no setteroverride
language String?
An IETF language code indicating the language of the returned review. This field contains the main language tag only, and not the secondary tag indicating country or region. For example, all the English reviews are tagged as 'en', and not 'en-AU' or 'en-UK' and so on. This field is empty if there is only a rating with no review text.
final
originalLanguage String?
An IETF language code indicating the original language of the review. If the review has been translated, then original_language != language. This field contains the main language tag only, and not the secondary tag indicating country or region. For example, all the English reviews are tagged as 'en', and not 'en-AU' or 'en-UK' and so on. This field is empty if there is only a rating with no review text.
final
profilePhotoUrl String?
The URL to the user's profile photo, if available.
final
rating int
The user's overall rating for this place. This is a whole number, ranging from 1 to 5.
final
relativeTimeDescription String
The time that the review was submitted in text, relative to the current time.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The user's review. When reviewing a location with Google Places, text reviews are considered optional. Therefore, this field may be empty. Note that this field may include simple HTML markup. For example, the entity reference & may represent an ampersand character.
final
time int
The time that the review was submitted, measured in the number of seconds since since midnight, January 1, 1970 UTC.
final
translated bool?
A boolean value indicating if the review was translated from the original language it was written in. If a review has been translated, corresponding to a value of true, Google recommends that you indicate this to your users. For example, you can add the following string, “Translated by Google”, to the review.
final

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override