ProductEntity constructor

ProductEntity({
  1. required String art,
  2. required num discount,
  3. required List<String> images,
  4. required bool isFavorite,
  5. required num minOrder,
  6. required String name,
  7. required PriceRuleEntity defaultPriceRule,
  8. required List<PriceRuleEntity> priceRules,
  9. required Map<ProductInfoType, String> infoMap,
  10. required num quantity,
  11. required num quantityInCart,
  12. required num quantityPerPackage,
  13. required num step,
  14. required UomType uom,
  15. bool isRemoved = false,
  16. String? barcode,
  17. int? categoryId,
  18. String? imageLink,
  19. int? vendorId,
  20. String? vendorName,
  21. String? vendorUrl,
})

Implementation

ProductEntity({
  required this.art,
  required this.discount,
  required this.images,
  required this.isFavorite,
  required this.minOrder,
  required this.name,
  required this.defaultPriceRule,
  required this.priceRules,
  required this.infoMap,
  required this.quantity,
  required this.quantityInCart,
  required this.quantityPerPackage,
  required this.step,
  required this.uom,
  this.isRemoved = false,
  this.barcode,
  this.categoryId,
  this.imageLink,
  this.vendorId,
  this.vendorLogo,
  this.vendorName,
  this.vendorUrl,
});