PlacePhoto class

A photo of a Place. The photo can be accesed via the Place Photo API using an url in the following pattern: https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photo_reference=photo_reference&key=YOUR_API_KEY See Place Photos for more information.

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

Constructors

PlacePhoto({required int height, required List<String> htmlAttributions, required String photoReference, required int width})
const
PlacePhoto.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
height int
The height of the photo.
final
htmlAttributions List<String>
The HTML attributions for the photo.
final
photoReference String
A string used to identify the photo when you perform a Photo request.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The width of the photo.
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