GoogleTypePostalAddress class

Represents a postal address, e.g. for postal delivery or payments addresses.

Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478

Constructors

GoogleTypePostalAddress({List<String>? addressLines, String? administrativeArea, String? languageCode, String? locality, String? organization, String? postalCode, List<String>? recipients, String? regionCode, int? revision, String? sortingCode, String? sublocality})
GoogleTypePostalAddress.fromJson(Map _json)

Properties

addressLines List<String>?
Unstructured address lines describing the lower levels of an address.
getter/setter pair
administrativeArea String?
Highest administrative subdivision which is used for postal addresses of a country or region.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
languageCode String?
BCP-47 language code of the contents of this address (if known).
getter/setter pair
locality String?
Generally refers to the city/town portion of the address.
getter/setter pair
organization String?
The name of the organization at the address.
getter/setter pair
postalCode String?
Postal code of the address.
getter/setter pair
recipients List<String>?
The recipient at the address.
getter/setter pair
regionCode String?
CLDR region code of the country/region of the address.
getter/setter pair
revision int?
The schema revision of the PostalAddress.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortingCode String?
Additional, country-specific, sorting code.
getter/setter pair
sublocality String?
Sublocality of the address.
getter/setter pair

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