Product constructor

Product({
  1. required String productId,
  2. String? name,
  3. String? subtitle,
  4. String? description,
  5. String? currency,
  6. String? mainProductImage,
  7. bool? isAvailable,
  8. bool? isDisabled,
  9. bool? hidePrice,
  10. bool? hidden,
  11. String? customCTATitleTranslation,
  12. bool? hidePrimaryCTA,
  13. String? customCTATarget,
  14. String? customCTAUrl,
  15. String? customCTATitle,
  16. List<ProductUnit>? units,
})

Implementation

Product({
  required this.productId,
  this.name,
  this.subtitle,
  this.description,
  this.currency,
  this.mainProductImage,
  this.isAvailable,
  this.isDisabled,
  this.hidePrice,
  this.hidden,
  this.customCTATitleTranslation,
  this.hidePrimaryCTA,
  this.customCTATarget,
  this.customCTAUrl,
  this.customCTATitle,
  this.units,
});