Product class

Constructors

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? relatedIds, List? upsellIds, List? crossSellIds, int? parentId, String? purchaseNote, List? categories, List? tags, List? images, List<Attribute>? attributes, List<Attribute>? defaultAttributes, List? variations, List? groupedProducts, int? menuOrder, List? metaData, String? dateCreated, String? dateCreatedGMT})
Product.fromJson(dynamic json)
factory

Properties

attributes List<Attribute>?
final
averageRating String?
final
backordered bool?
final
backorders String?
final
backordersAllowed bool?
final
buttonText String?
final
catalogVisibility String?
final
categories List?
final
crossSellIds List?
final
dateCreated String?
final
dateCreatedGMT String?
final
defaultAttributes List<Attribute>?
final
description String?
final
dimensions Map<String, dynamic>?
final
downloadable bool?
final
downloadExpiry int?
final
downloadLimit int?
final
downloads List<Download>?
final
duration String?
final
externalUrl String?
final
final
groupedProducts List?
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
images List?
final
manageStock bool?
final
final
metaData List?
final
name String?
final
onSale bool?
final
parentId int?
final
final
price String?
final
priceHtml String?
final
purchasable bool?
final
purchaseNote String?
final
ratingCount int?
final
regularPrice String?
final
relatedIds List?
final
reviewsAllowed bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salePrice String?
final
shippingClass String?
final
shippingClassId int?
final
shippingRequired bool?
final
shippingTaxable bool?
final
shortDescription String?
final
sku String?
final
slug String?
final
soldIndividually bool?
final
status String?
final
stockQuantity int?
final
stockStatus String?
final
tags List?
final
taxClass String?
final
taxStatus String?
final
timeList String?
final
toList → dynamic
no setter
totalSales int?
final
type String?
final
upsellIds List?
final
variations List?
final
virtual bool?
final
weight String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap(Product e) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited