AddressDescriptor class

A relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location.

Documentation: https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#addressdescriptor

Inheritance
Available extensions
Annotations
  • @JsonSerializable()
  • @CopyWith()

Constructors

AddressDescriptor.new({List<Landmark>? landmarks, List<Area>? areas})
AddressDescriptor.fromJson(Map<String, dynamic> json)
factory

Properties

areas List<Area>?
A ranked list of containing or adjacent areas. The most recognizable and precise areas are ranked first.
final
copyWith → _$AddressDescriptorCWProxy

Available on AddressDescriptor, provided by the $AddressDescriptorCopyWith extension

Returns a callable class that can be used as follows: instanceOfAddressDescriptor.copyWith(...).
no setter
hashCode int
The hash code for this object.
no setterinherited
landmarks List<Landmark>?
A ranked list of nearby landmarks. The most recognizable and nearby landmarks are ranked first.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJsonList(List? jsonList) List<AddressDescriptor>?
inherited
fromJsonMap(Map<String, dynamic>? json) AddressDescriptor?
override
fromJsonString(String? json) AddressDescriptor?
inherited
fromJsonStringList(String? jsonStringList) List<AddressDescriptor>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFieldsMask({String? parentKey}) List<String>
inherited
toJson() Map<String, dynamic>
override
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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