Product constructor
Product({
- String? duration,
- String? timeList,
- 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,
- Map<
String, dynamic> ? dimensions, - bool? shippingRequired,
- bool? shippingTaxable,
- String? shippingClass,
- int? shippingClassId,
- bool? reviewsAllowed,
- String? averageRating,
- int? ratingCount,
- List? upsellIds,
- List? crossSellIds,
- int? parentId,
- String? purchaseNote,
- List? categories,
- List? tags,
- List? images,
- List<
Attribute> ? attributes, - List<
Attribute> ? defaultAttributes, - List? variations,
- List? groupedProducts,
- List? metaData,
- String? dateCreated,
- 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});