Place class

Represents a particular physical place.

A Place encapsulates information about a physical location, including its name, address, and any other information we might have about it.

Note: In general, some fields will be inapplicable to certain places, or the information may not exist.

Ref: https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/Place

Annotations
  • @freezed

Constructors

Place({required String? id, required String? address, required List<AddressComponent>? addressComponents, required BusinessStatus? businessStatus, required List<String>? attributions, required LatLng? latLng, required String? name, required OpeningHours? openingHours, required String? phoneNumber, required List<PhotoMetadata>? photoMetadatas, required PlusCode? plusCode, required int? priceLevel, required double? rating, required List<PlaceType>? types, required int? userRatingsTotal, required int? utcOffsetMinutes, required LatLngBounds? viewport, required Uri? websiteUri})
const
factory
Place.fromJson(Map<String, Object?> json)
Parse an Place from json.
factory

Properties

address String?
no setterinherited
addressComponents List<AddressComponent>?
no setterinherited
attributions List<String>?
no setterinherited
businessStatus BusinessStatus?
no setterinherited
copyWith → $PlaceCopyWith<Place>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
no setterinherited
latLng LatLng?
no setterinherited
name String?
no setterinherited
openingHours OpeningHours?
no setterinherited
phoneNumber String?
no setterinherited
photoMetadatas List<PhotoMetadata>?
no setterinherited
plusCode PlusCode?
no setterinherited
priceLevel int?
no setterinherited
rating double?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
types List<PlaceType>?
no setterinherited
userRatingsTotal int?
no setterinherited
utcOffsetMinutes int?
no setterinherited
viewport LatLngBounds?
no setterinherited
websiteUri Uri?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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