OrderAddress class

The physical address for an order.

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

OrderAddress.new({required List<String>? addressLines, required String? administrativeArea, required String? countryCode, required String? locality, required String? postalCode, required String? subAdministrativeArea, required String? subLocality})
OrderAddress.fromJson(Map<String, dynamic> json)
Creates an instance of this class from a JSON object
factory

Properties

addressLines List<String>?
The street portion of the address.
final
administrativeArea String?
The state or administrative area of the address.
final
countryCode String?
The country of the address, in ISO-3166 two-letter format. Minimum Length: 2 Maximum Length: 2
final
hashCode int
The hash code for this object.
no setterinherited
locality String?
The city of the address.
final
postalCode String?
The ZIP or postal code, where applicable, of the address.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subAdministrativeArea String?
The subadministrative area (such as county or other region) of the address.
final
subLocality String?
Additional information associated with the location, such as a district or neighborhood.
final

Methods

copyWith({List<String>? addressLines, String? administrativeArea, String? countryCode, String? locality, String? postalCode, String? subAdministrativeArea, String? subLocality}) OrderAddress
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this instance to a JSON object
toString() String
A string representation of this object.
inherited

Operators

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