WooProduct class
Constructors
-
WooProduct(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<
WooProductDownload> 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, WooProductDimension 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<WooProductCategory> categories, List<WooProductItemTag> tags, List<WooProductImage> images, List<WooProductItemAttribute> attributes, List<WooProductDefaultAttribute> defaultAttributes, List<int> ? variations, List<int> ? groupedProducts, List<MetaData> metaData) -
WooProduct.fromJson(Map<
String, dynamic> json)
Properties
-
attributes
→ List<
WooProductItemAttribute> -
final
- averageRating → String?
-
final
- backordered → bool?
-
final
- backorders → String?
-
final
- backordersAllowed → bool?
-
final
-
final
- catalogVisibility → String?
-
final
-
categories
→ List<
WooProductCategory> -
final
-
crossSellIds
→ List<
int> ? -
final
-
defaultAttributes
→ List<
WooProductDefaultAttribute> -
final
- description → String?
-
final
- dimensions → WooProductDimension
-
final
- downloadable → bool?
-
final
- downloadExpiry → int?
-
final
- downloadLimit → int?
-
final
-
downloads
→ List<
WooProductDownload> -
final
- externalUrl → String?
-
final
- featured → bool?
-
final
-
groupedProducts
→ List<
int> ? -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int?
-
final
-
images
→ List<
WooProductImage> -
final
- manageStock → bool?
-
final
-
final
-
metaData
→ List<
MetaData> -
final
- name → String?
-
final
- onSale → bool?
-
final
- parentId → int?
-
final
- permalink → String?
-
final
- price → String?
-
final
- priceHtml → String?
-
final
- purchasable → bool?
-
final
- purchaseNote → String?
-
final
- ratingCount → int?
-
final
- regularPrice → String?
-
final
-
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
-
final
- taxClass → String?
-
final
- taxStatus → String?
-
final
- totalSales → int?
-
final
- type → String?
-
final
-
upsellIds
→ List<
int> ? -
final
-
variations
→ List<
int> ? -
final
- virtual → bool?
-
final
- weight → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override