OrderLineItem class
- Annotations
-
- @JsonSerializable.new(explicitToJson: true)
Constructors
-
OrderLineItem({String id = '', String orderId = '', String displayName = '', double unitPrice = 0.0, String businessId = '', String productId = '', double quantity = 0, double subtotalPrice = 0.0, double totalPrice = 0.0, double unitCost = 0.0, bool taxable = false, bool isCombo = false, bool isStockTrackable = false, List<ComboInfo> comboItems = const [], List<OrderDiscount> discounts = const [], String imageUrl = '', String sku = '', TaxInfo taxInfo = const TaxInfo(), String variantId = ''})
-
const
-
OrderLineItem.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
copyWith({String? id, String? orderId, String? displayName, double? unitPrice, double? unitCost, double? subtotalPrice, double? totalPrice, double? quantity, bool? taxable, TaxInfo? taxInfo, String? sku, String? variantId, String? imageUrl, String? businessId, String? productId, List<OrderDiscount>? discounts, bool? isCombo, bool? isStockTrackable, List<ComboInfo>? comboItems})
→ OrderLineItem
-
-
fromQuickSale({String? orderId, String? businessId, String? description, double? amount})
→ OrderLineItem
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
inherited