Product constructor

Product(
  1. int? id,
  2. String? name,
  3. String? slug,
  4. String? permalink,
  5. String? type,
  6. String? status,
  7. bool? featured,
  8. String? catalogVisibility,
  9. String? description,
  10. String? shortDescription,
  11. String? sku,
  12. String? price,
  13. String? regularPrice,
  14. String? salePrice,
  15. String? priceHtml,
  16. bool? onSale,
  17. bool? purchasable,
  18. int? totalSales,
  19. bool? virtual,
  20. bool? downloadable,
  21. List<Download> downloads,
  22. int? downloadLimit,
  23. int? downloadExpiry,
  24. String? externalUrl,
  25. String? buttonText,
  26. String? taxStatus,
  27. String? taxClass,
  28. bool? manageStock,
  29. int? stockQuantity,
  30. String? stockStatus,
  31. String? backorders,
  32. bool? backordersAllowed,
  33. bool? backordered,
  34. bool? soldIndividually,
  35. String? weight,
  36. Dimension dimensions,
  37. bool? shippingRequired,
  38. bool? shippingTaxable,
  39. String? shippingClass,
  40. int? shippingClassId,
  41. bool? reviewsAllowed,
  42. String? averageRating,
  43. int? ratingCount,
  44. List<int>? relatedIds,
  45. List<int>? upsellIds,
  46. List<int>? crossSellIds,
  47. int? parentId,
  48. String? purchaseNote,
  49. List<Category> categories,
  50. List<Tag> tags,
  51. List<Image> images,
  52. List<Attribute> attributes,
  53. List<DefaultAttribute> defaultAttributes,
  54. List<int>? variations,
  55. List<int>? groupedProducts,
  56. int? menuOrder,
  57. List<MetaData> metaData,
  58. String? dateCreated,
  59. String? dateCreatedGMT,
)

Implementation

Product(
    this.id,
    this.name,
    this.slug,
    this.permalink,
    this.type,
    this.status,
    this.featured,
    this.catalogVisibility,
    this.description,
    this.shortDescription,
    this.sku,
    this.price,
    this.regularPrice,
    this.salePrice,
    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.dateCreated,
    this.dateCreatedGMT);