Product constructor

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

Implementation

Product(
    {this.duration,
    this.timeList,
    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});