LineItemOrder class
The line item order
- Annotations
-
- @freezed
Constructors
-
LineItemOrder({required int currentQuantity, required PriceV2 discountedTotalPrice, required PriceV2 originalTotalPrice, required int quantity, required String title, @Default([]) List<
DiscountAllocations> discountAllocations, @Default(null) ProductVariantCheckout? variant}) -
The line item order constructor
factory
-
LineItemOrder.fromGraphJson(Map<
String, dynamic> json) -
The line item order from json
factory
-
LineItemOrder.fromJson(Map<
String, dynamic> json) -
The line item order from json
factory
Properties
-
copyWith
→ $LineItemOrderCopyWith<
LineItemOrder> -
Create a copy of LineItemOrder
with the given fields replaced by the non-null parameter values.
no setterinherited
- currentQuantity → int
-
no setterinherited
-
discountAllocations
→ List<
DiscountAllocations> -
no setterinherited
- discountedTotalPrice → PriceV2
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalTotalPrice → PriceV2
-
no setterinherited
- productId → String?
-
The line item order from json
no setter
- quantity → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
no setterinherited
- variant → ProductVariantCheckout?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this LineItemOrder to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited