ShippingAddress class

This object represents a shipping address.

Constructors

ShippingAddress({required String countryCode, required String state, required String city, required String streetLine1, required String streetLine2, required String postCode})
Constructs a ShippingAddress object
const
ShippingAddress.fromJson(Map<String, dynamic> json)
Creates a ShippingAddress object from JSON object
factory

Properties

city String
City
final
countryCode String
ISO 3166-1 alpha-2 country code
final
hashCode int
The hash code for this object.
no setterinherited
postCode String
Address post code
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String
State, if applicable
final
streetLine1 String
First line for the address
final
streetLine2 String
Second line for the address
final

Methods

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

Operators

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