OrderSummary class

Constructors

OrderSummary({String? id, OrderOrigin? origin, OrderSummaryStatusEnum? status, Money? total, OrderPayment? payment, int? itemCount, DateTime? createdAt, DateTime? updatedAt, String? referenceId})
Returns a new OrderSummary instance.

Properties

createdAt ↔ DateTime?
When the order was created (UTC).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
Order id.
getter/setter pair
itemCount ↔ int?
Number of order items.
getter/setter pair
origin ↔ OrderOrigin?
Where the order was created.
getter/setter pair
payment ↔ OrderPayment?
The latest payment attempt; null when none was made.
getter/setter pair
referenceId ↔ String?
Your own order reference, when one was sent.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ OrderSummaryStatusEnum?
Current order status.
getter/setter pair
total ↔ Money?
What the order costs, in the order's currency.
getter/setter pair
updatedAt ↔ DateTime?
When the order last changed (UTC).
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) → OrderSummary?
Returns a new OrderSummary instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<OrderSummary>
mapFromJson(dynamic json) → Map<String, OrderSummary>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<OrderSummary>>

Constants

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