Product constructor
Product({
- required String productId,
- required String title,
- required String linkUrlString,
- required String feature,
- required String cohort,
- required Map customFields,
- String? imageUrlString,
- String? zoomImageUrlString,
- String? categoryPath,
- bool? available,
- String? productDescription,
- double? price,
- double? msrp,
- String? album,
- String? actor,
- String? artist,
- String? author,
- String? brand,
- int? year,
Implementation
Product(
{required this.productId,
required this.title,
required this.linkUrlString,
required this.feature,
required this.cohort,
required this.customFields,
this.imageUrlString,
this.zoomImageUrlString,
this.categoryPath,
this.available,
this.productDescription,
this.price,
this.msrp,
this.album,
this.actor,
this.artist,
this.author,
this.brand,
this.year})
: linkUrl = Uri.parse(linkUrlString),
imageUrl = imageUrlString != null ? Uri.parse(imageUrlString) : null,
zoomImageUrl =
zoomImageUrlString != null ? Uri.parse(zoomImageUrlString) : null;