Product constructor

Product({
  1. required String title,
  2. required String id,
  3. required bool availableForSale,
  4. required String createdAt,
  5. required List<ProductVariant> productVariants,
  6. required String productType,
  7. required String publishedAt,
  8. required List<String> tags,
  9. required String updatedAt,
  10. required List<ShopifyImage> images,
  11. required List<Option> options,
  12. required String vendor,
  13. required List<ProductMedia> media,
  14. List<AssociatedCollections>? collectionList,
  15. String? cursor,
  16. String? onlineStoreUrl,
  17. String? description,
  18. String? descriptionHtml,
  19. 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;