Cart constructor
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
Implementation
factory 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,
}) = _Cart;