ProductViewModel constructor

ProductViewModel({
  1. required dynamic productId,
  2. String? title,
  3. String? url,
  4. String? mUrl,
  5. String? image,
  6. String? imageXS,
  7. String? imageS,
  8. String? imageM,
  9. String? imageL,
  10. String? imageXL,
  11. List<String>? additionalImages,
  12. String? mainCategory,
  13. String? category,
  14. List<String>? categories,
  15. num? price,
  16. num? oldPrice,
  17. num? specialPrice,
  18. int? lastUpdateTime,
  19. bool? inStock,
  20. int? stockCount,
  21. num? stockRatio,
  22. num? stockStatus,
  23. String? brand,
  24. String? gender,
  25. List<String>? labels,
  26. List<String>? sizes,
  27. List<String>? allSizes,
  28. List<String>? colors,
  29. int? publishTime,
  30. String? source,
  31. bool? noUpdate,
  32. List<String>? activeBanners,
  33. String? groupId,
  34. num? scoreCount,
  35. int? reviewCount,
  36. String? subSource,
  37. Map<String, dynamic>? paramsList,
  38. String? sessionId,
  39. String? userId,
  40. String? device,
  41. String? os,
  42. String? lang,
})

Implementation

ProductViewModel({
  required this.productId,
  this.title,
  this.url,
  this.mUrl,
  this.image,
  this.imageXS,
  this.imageS,
  this.imageM,
  this.imageL,
  this.imageXL,
  this.additionalImages,
  this.mainCategory,
  this.category,
  this.categories,
  this.price,
  this.oldPrice,
  this.specialPrice,
  this.lastUpdateTime,
  this.inStock,
  this.stockCount,
  this.stockRatio,
  this.stockStatus,
  this.brand,
  this.gender,
  this.labels,
  this.sizes,
  this.allSizes,
  this.colors,
  this.publishTime,
  this.source,
  this.noUpdate,
  this.activeBanners,
  this.groupId,
  this.scoreCount,
  this.reviewCount,
  this.subSource,
  this.paramsList,
  this.sessionId,
  this.userId,
  this.device,
  this.os,
  this.lang,
});