CartOpen class

Constructors

CartOpen({String? currency, String? email, String? store, String? user})
Returns a new CartOpen instance.

Properties

currency ↔ String?
Currency is the ISO 4217 code the cart is priced in, lower-cased. Empty means usd.
getter/setter pair
email ↔ String?
Email is the shopper's address, for a cart that belongs to someone who has not signed in. It is what a guest checkout and an abandoned-cart follow-up key on. Empty is fine.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store ↔ String?
Store is the storefront this cart is being filled on. Empty uses the org's default store, which is what a single-storefront merchant always wants.
getter/setter pair
user ↔ String?
User is the id of the signed-in shopper this cart belongs to, when there is one. Empty means a guest cart identified only by its own id.
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → CartOpen?
Returns a new CartOpen instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CartOpen>
mapFromJson(dynamic json) → Map<String, CartOpen>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CartOpen>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.