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})
Basic constructor

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Creates a json from the object
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) ShippingAddress
Creates a object from a json