Product constructor
Product(
- int? id,
- String? name,
- String? slug,
- String? permalink,
- String? type,
- String? status,
- bool? featured,
- String? catalogVisibility,
- String? description,
- String? shortDescription,
- String? sku,
- String? price,
- String? regularPrice,
- String? salePrice,
- String? priceHtml,
- bool? onSale,
- bool? purchasable,
- int? totalSales,
- bool? virtual,
- bool? downloadable,
- List<
Download> downloads, - int? downloadLimit,
- int? downloadExpiry,
- String? externalUrl,
- String? buttonText,
- String? taxStatus,
- String? taxClass,
- bool? manageStock,
- int? stockQuantity,
- String? stockStatus,
- String? backorders,
- bool? backordersAllowed,
- bool? backordered,
- bool? soldIndividually,
- String? weight,
- Dimension dimensions,
- bool? shippingRequired,
- bool? shippingTaxable,
- String? shippingClass,
- int? shippingClassId,
- bool? reviewsAllowed,
- String? averageRating,
- int? ratingCount,
- List<
int> ? upsellIds, - List<
int> ? crossSellIds, - int? parentId,
- String? purchaseNote,
- List<
Category> categories, - List<
Tag> tags, - List<
Image> images, - List<
Attribute> attributes, - List<
DefaultAttribute> defaultAttributes, - List<
int> ? variations, - List<
int> ? groupedProducts, - List<
MetaData> metaData, - String? dateCreated,
- 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);