Cart class
The cart
- Annotations
-
- @freezed
Constructors
-
Cart({required String id, required String? checkoutUrl, required CartCost? cost, required int? totalQuantity, required List<
CartDiscountAllocation?> ? discountAllocations, required List<CartDiscountCode?> ? discountCodes, required String? createdAt, CartBuyerIdentity? buyerIdentity, String? note, String? updatedAt, @JsonKey(fromJson: JsonHelper.lines) required List<Line> lines}) -
The cart constructor
factory
-
Cart.fromJson(Map<
String, dynamic> json) -
The cart from json
factory
Properties
- buyerIdentity → CartBuyerIdentity?
-
no setterinherited
- checkoutUrl → String?
-
no setterinherited
-
copyWith
→ $CartCopyWith<
Cart> -
Create a copy of Cart
with the given fields replaced by the non-null parameter values.
no setterinherited
- cost → CartCost?
-
no setterinherited
- createdAt → String?
-
no setterinherited
-
discountAllocations
→ List<
CartDiscountAllocation?> ? -
no setterinherited
-
discountCodes
→ List<
CartDiscountCode?> ? -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
-
lines
→ List<
Line> -
no setterinherited
- note → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalQuantity → int?
-
no setterinherited
- updatedAt → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Cart to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited