Product constructor

Product({
  1. int? id,
  2. String? name,
  3. String? slug,
  4. String? permalink,
  5. String? dateCreated,
  6. String? dateCreatedGmt,
  7. String? dateModified,
  8. String? dateModifiedGmt,
  9. String? type,
  10. String? status,
  11. bool? featured,
  12. String? catalogVisibility,
  13. String? description,
  14. String? shortDescription,
  15. String? sku,
  16. String? price,
  17. String? regularPrice,
  18. String? salePrice,
  19. String? dateOnSaleFrom,
  20. String? dateOnSaleFromGmt,
  21. String? dateOnSaleTo,
  22. String? dateOnSaleToGmt,
  23. String? priceHtml,
  24. bool? onSale,
  25. bool? purchasable,
  26. int? totalSales,
  27. bool? virtual,
  28. bool? downloadable,
  29. List<ProductDownloads>? downloads,
  30. int? downloadLimit,
  31. int? downloadExpiry,
  32. String? externalUrl,
  33. String? buttondText,
  34. String? taxStatus,
  35. String? taxClass,
  36. bool? manageStock,
  37. int? stockQuantity,
  38. String? stockStatus,
  39. String? backorders,
  40. bool? backordersAllowed,
  41. bool? backordered,
  42. bool? soldIndividually,
  43. String? weight,
  44. ProductDimensions? dimensions,
  45. bool? shippingdRequired,
  46. bool? shippingdTaxable,
  47. String? shippingClass,
  48. int? shippingClassId,
  49. bool? reviewsAllowed,
  50. String? averagedRating,
  51. int? ratingCount,
  52. List<int>? relatedIds,
  53. List<int>? upsellIds,
  54. List<int>? crossSellIds,
  55. int? parentId,
  56. String? purchaseNote,
  57. List<ProductCategory>? categories,
  58. List<ProductTag>? tags,
  59. List<ProductImage>? images,
  60. List<ProductAttributes>? attributes,
  61. List<ProductDefaultAttributes>? defaultAttributes,
  62. List<int>? variations,
  63. List<Product>? groupedProducts,
  64. int? menuOrder,
  65. List<ProductMeta>? metaData,
})

Implementation

Product({
  this.id,
  this.name,
  this.slug,
  this.permalink,
  this.dateCreated,
  this.dateCreatedGmt,
  this.dateModified,
  this.dateModifiedGmt,
  this.type,
  this.status,
  this.featured,
  this.catalogVisibility,
  this.description,
  this.shortDescription,
  this.sku,
  this.price,
  this.regularPrice,
  this.salePrice,
  this.dateOnSaleFrom,
  this.dateOnSaleFromGmt,
  this.dateOnSaleTo,
  this.dateOnSaleToGmt,
  this.priceHtml,
  this.onSale,
  this.purchasable,
  this.totalSales,
  this.virtual,
  this.downloadable,
  this.downloads,
  this.downloadLimit,
  this.downloadExpiry,
  this.externalUrl,
  this.buttondText,
  this.taxStatus,
  this.taxClass,
  this.manageStock,
  this.stockQuantity,
  this.stockStatus,
  this.backorders,
  this.backordersAllowed,
  this.backordered,
  this.soldIndividually,
  this.weight,
  this.dimensions,
  this.shippingdRequired,
  this.shippingdTaxable,
  this.shippingClass,
  this.shippingClassId,
  this.reviewsAllowed,
  this.averagedRating,
  this.ratingCount,
  this.relatedIds,
  this.upsellIds,
  this.crossSellIds,
  this.parentId,
  this.purchaseNote,
  this.categories,
  this.tags,
  this.images,
  this.attributes,
  this.defaultAttributes,
  this.variations,
  this.groupedProducts,
  this.menuOrder,
  this.metaData,
});