Product constructor
Product({
- required String title,
- required String id,
- required bool availableForSale,
- required String createdAt,
- required List<
ProductVariant> productVariants, - required String productType,
- required String publishedAt,
- required List<
String> tags, - required String updatedAt,
- required List<
ShopifyImage> images, - required List<
Option> options, - required String vendor,
- required List<
ProductMedia> media, - List<
AssociatedCollections> ? collectionList, - String? cursor,
- String? onlineStoreUrl,
- String? description,
- String? descriptionHtml,
- String? handle,
Implementation
factory Product({
required String title,
required String id,
required bool availableForSale,
required String createdAt,
required List<ProductVariant> productVariants,
required String productType,
required String publishedAt,
required List<String> tags,
required String updatedAt,
required List<ShopifyImage> images,
required List<Option> options,
required String vendor,
required List<ProductMedia> media,
// required List<Metafield> metafields,
List<AssociatedCollections>? collectionList,
String? cursor,
String? onlineStoreUrl,
String? description,
String? descriptionHtml,
String? handle,
}) = _Product;