Create constructor

Create({
  1. int? id,
  2. String? name,
  3. String? slug,
  4. String? permalink,
  5. DateTime? dateCreated,
  6. DateTime? dateCreatedGmt,
  7. DateTime? dateModified,
  8. DateTime? 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. dynamic dateOnSaleFrom,
  20. dynamic dateOnSaleFromGmt,
  21. dynamic dateOnSaleTo,
  22. dynamic dateOnSaleToGmt,
  23. String? priceHtml,
  24. bool? onSale,
  25. bool? purchasable,
  26. int? totalSales,
  27. bool? virtual,
  28. bool? downloadable,
  29. List<Download>? downloads,
  30. int? downloadLimit,
  31. int? downloadExpiry,
  32. String? externalUrl,
  33. String? buttonText,
  34. String? taxStatus,
  35. String? taxClass,
  36. bool? manageStock,
  37. dynamic stockQuantity,
  38. String? stockStatus,
  39. String? backorders,
  40. bool? backordersAllowed,
  41. bool? backordered,
  42. bool? soldIndividually,
  43. String? weight,
  44. Dimensions? dimensions,
  45. bool? shippingRequired,
  46. bool? shippingTaxable,
  47. String? shippingClass,
  48. int? shippingClassId,
  49. bool? reviewsAllowed,
  50. String? averageRating,
  51. int? ratingCount,
  52. List<int>? relatedIds,
  53. List? upsellIds,
  54. List? crossSellIds,
  55. int? parentId,
  56. String? purchaseNote,
  57. List<Category>? categories,
  58. List? tags,
  59. List<Image>? images,
  60. List<Attribute>? attributes,
  61. List<DefaultAttribute>? defaultAttributes,
  62. List? variations,
  63. List? groupedProducts,
  64. int? menuOrder,
  65. List? metaData,
  66. Links? links,
})

Implementation

Create({
  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.buttonText,
  this.taxStatus,
  this.taxClass,
  this.manageStock,
  this.stockQuantity,
  this.stockStatus,
  this.backorders,
  this.backordersAllowed,
  this.backordered,
  this.soldIndividually,
  this.weight,
  this.dimensions,
  this.shippingRequired,
  this.shippingTaxable,
  this.shippingClass,
  this.shippingClassId,
  this.reviewsAllowed,
  this.averageRating,
  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,
  this.links,
});