allItems property

List<CartItem> allItems
@JsonKey(name: 'items'), read / write

We have three type of items on the cart

loriItem: A Regular cartItem added explicitly by the user to the cart

promotionalItem: A promotional cartItem added to the cart by the retailer the promotionalItem MIGHT BE FREE but might only have a discount it is NOT editable

giftItem: A GIFT cartItem added to the cart by the retailer the giftItem is always free since its a gift it is editable through special endpoints All the cartItems returned by the API

Implementation

/// All the cartItems returned by the API
@JsonKey(name: 'items')
List<CartItem> allItems;