Cart class
The cart
- Annotations
-
- @freezed
Constructors
-
Cart.new({required String id, required String? checkoutUrl, required CartCost? cost, required int? totalQuantity, required List<
CartDiscountAllocation?> ? discountAllocations, required List<CartDiscountCode?> ? discountCodes, required String? createdAt, List<Attribute?> ? attributes, 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
-
attributes
→ List<
Attribute?> ? -
no setterinherited
- buyerIdentity → CartBuyerIdentity?
-
no setterinherited
- checkoutUrl → String?
-
no setterinherited
-
copyWith
→ $CartCopyWith<
Cart> -
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> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited