WishlistProductsModel constructor Null safety

WishlistProductsModel(
  1. {bool? preOrder,
  2. dynamic availabilityDate,
  3. int? id,
  4. int? productId,
  5. dynamic productCode,
  6. String? imageUrl,
  7. String? imageThumbUrl,
  8. String? title,
  9. String? seoTitle,
  10. bool? isOutOfStock,
  11. double? price,
  12. double? finalPrice,
  13. bool? hasDiscount,
  14. double? discountValue,
  15. int? discountType,
  16. String? promoText,
  17. String? bogoPromoText,
  18. String? croppedImageUrl,
  19. bool? enableCropping,
  20. String? size,
  21. int? sizeId,
  22. String? colorHexaCode,
  23. String? color,
  24. int? colorId}
)

Implementation

WishlistProductsModel({
  this.preOrder,
  this.availabilityDate,
  this.id,
  this.productId,
  this.productCode,
  this.imageUrl,
  this.imageThumbUrl,
  this.title,
  this.seoTitle,
  this.isOutOfStock,
  this.price,
  this.finalPrice,
  this.hasDiscount,
  this.discountValue,
  this.discountType,
  this.promoText,
  this.bogoPromoText,
  this.croppedImageUrl,
  this.enableCropping,
  this.size,
  this.sizeId,
  this.colorHexaCode,
  this.color,
  this.colorId,
});