Product class Null safety
Required product attributes are primarily defined by the product data specification.
See the Product Data Specification Help Center article for information. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.
Constructors
-
Product({List<
String> ? additionalImageLinks, String? additionalSizeType, String? adsGrouping, List<String> ? adsLabels, String? adsRedirect, bool? adult, String? ageGroup, String? availability, String? availabilityDate, String? brand, String? canonicalLink, String? channel, String? color, String? condition, String? contentLanguage, Price? costOfGoodsSold, List<CustomAttribute> ? customAttributes, String? customLabel0, String? customLabel1, String? customLabel2, String? customLabel3, String? customLabel4, String? description, String? displayAdsId, String? displayAdsLink, List<String> ? displayAdsSimilarIds, String? displayAdsTitle, double? displayAdsValue, String? energyEfficiencyClass, List<String> ? excludedDestinations, String? expirationDate, String? externalSellerId, String? feedLabel, String? gender, String? googleProductCategory, String? gtin, String? id, bool? identifierExists, String? imageLink, List<String> ? includedDestinations, Installment? installment, bool? isBundle, String? itemGroupId, String? kind, List<String> ? lifestyleImageLinks, String? link, String? linkTemplate, LoyaltyPoints? loyaltyPoints, String? material, String? maxEnergyEfficiencyClass, String? maxHandlingTime, String? minEnergyEfficiencyClass, String? minHandlingTime, String? mobileLink, String? mobileLinkTemplate, String? mpn, String? multipack, String? offerId, String? pattern, String? pause, String? pickupMethod, String? pickupSla, Price? price, List<ProductProductDetail> ? productDetails, ProductDimension? productHeight, List<String> ? productHighlights, ProductDimension? productLength, List<String> ? productTypes, ProductWeight? productWeight, ProductDimension? productWidth, List<String> ? promotionIds, Price? salePrice, String? salePriceEffectiveDate, String? sellOnGoogleQuantity, List<ProductShipping> ? shipping, ProductShippingDimension? shippingHeight, String? shippingLabel, ProductShippingDimension? shippingLength, ProductShippingWeight? shippingWeight, ProductShippingDimension? shippingWidth, List<String> ? shoppingAdsExcludedCountries, String? sizeSystem, String? sizeType, List<String> ? sizes, String? source, ProductSubscriptionCost? subscriptionCost, String? targetCountry, String? taxCategory, List<ProductTax> ? taxes, String? title, String? transitTimeLabel, ProductUnitPricingBaseMeasure? unitPricingBaseMeasure, ProductUnitPricingMeasure? unitPricingMeasure}) - Product.fromJson(Map json_)
Properties
-
additionalImageLinks
↔ List<
String> ? -
Additional URLs of images of the item.
read / write
- additionalSizeType ↔ String?
-
Additional cut of the item.
read / write
- adsGrouping ↔ String?
-
Used to group items in an arbitrary way.
read / write
-
adsLabels
↔ List<
String> ? -
Similar to ads_grouping, but only works on CPC.
read / write
- adsRedirect ↔ String?
-
Allows advertisers to override the item URL when the product is shown
within the context of Product Ads.
read / write
- adult ↔ bool?
-
Should be set to true if the item is targeted towards adults.
read / write
- ageGroup ↔ String?
-
Target age group of the item.
read / write
- availability ↔ String?
-
Availability status of the item.
read / write
- availabilityDate ↔ String?
-
The day a pre-ordered product becomes available for delivery, in ISO 8601
format.
read / write
- brand ↔ String?
-
Brand of the item.
read / write
- canonicalLink ↔ String?
-
URL for the canonical version of your item's landing page.
read / write
- channel ↔ String?
-
The item's channel (online or local).
read / write
- color ↔ String?
-
Color of the item.
read / write
- condition ↔ String?
-
Condition or state of the item.
read / write
- contentLanguage ↔ String?
-
The two-letter ISO 639-1 language code for the item.
read / write
- costOfGoodsSold ↔ Price?
-
Cost of goods sold.
read / write
-
customAttributes
↔ List<
CustomAttribute> ? -
A list of custom (merchant-provided) attributes.
read / write
- customLabel0 ↔ String?
-
Custom label 0 for custom grouping of items in a Shopping campaign.
read / write
- customLabel1 ↔ String?
-
Custom label 1 for custom grouping of items in a Shopping campaign.
read / write
- customLabel2 ↔ String?
-
Custom label 2 for custom grouping of items in a Shopping campaign.
read / write
- customLabel3 ↔ String?
-
Custom label 3 for custom grouping of items in a Shopping campaign.
read / write
- customLabel4 ↔ String?
-
Custom label 4 for custom grouping of items in a Shopping campaign.
read / write
- description ↔ String?
-
Description of the item.
read / write
- displayAdsId ↔ String?
-
An identifier for an item for dynamic remarketing campaigns.
read / write
- displayAdsLink ↔ String?
-
URL directly to your item's landing page for dynamic remarketing
campaigns.
read / write
-
displayAdsSimilarIds
↔ List<
String> ? -
Advertiser-specified recommendations.
read / write
- displayAdsTitle ↔ String?
-
Title of an item for dynamic remarketing campaigns.
read / write
- displayAdsValue ↔ double?
-
Offer margin for dynamic remarketing campaigns.
read / write
- energyEfficiencyClass ↔ String?
-
The energy efficiency class as defined in EU directive 2010/30/EU.
read / write
-
excludedDestinations
↔ List<
String> ? -
The list of destinations to exclude for this target (corresponds to
cleared check boxes in Merchant Center).
read / write
- expirationDate ↔ String?
-
Date on which the item should expire, as specified upon insertion, in ISO
8601 format.
read / write
- externalSellerId ↔ String?
-
Required for multi-seller accounts.
read / write
- feedLabel ↔ String?
-
Feed label for the item.
read / write
- gender ↔ String?
-
Target gender of the item.
read / write
- googleProductCategory ↔ String?
-
Google's category of the item (see
Google product taxonomy).
read / write
- gtin ↔ String?
-
Global Trade Item Number (GTIN) of the item.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ String?
-
The REST ID of the product.
read / write
- identifierExists ↔ bool?
-
False when the item does not have unique product identifiers appropriate
to its category, such as GTIN, MPN, and brand.
read / write
- imageLink ↔ String?
-
URL of an image of the item.
read / write
-
includedDestinations
↔ List<
String> ? -
The list of destinations to include for this target (corresponds to
checked check boxes in Merchant Center).
read / write
- installment ↔ Installment?
-
Number and amount of installments to pay for an item.
read / write
- isBundle ↔ bool?
-
Whether the item is a merchant-defined bundle.
read / write
- itemGroupId ↔ String?
-
Shared identifier for all variants of the same product.
read / write
- kind ↔ String?
-
Identifies what kind of resource this is.
read / write
-
lifestyleImageLinks
↔ List<
String> ? -
Additional URLs of lifestyle images of the item, used to explicitly
identify images that showcase your item in a real-world context.
read / write
- link ↔ String?
-
URL directly linking to your item's page on your website.
read / write
- linkTemplate ↔ String?
-
URL template for merchant hosted local storefront.
read / write
- loyaltyPoints ↔ LoyaltyPoints?
-
Loyalty points that users receive after purchasing the item.
read / write
- material ↔ String?
-
The material of which the item is made.
read / write
- maxEnergyEfficiencyClass ↔ String?
-
The energy efficiency class as defined in EU directive 2010/30/EU.
read / write
- maxHandlingTime ↔ String?
-
Maximal product handling time (in business days).
read / write
- minEnergyEfficiencyClass ↔ String?
-
The energy efficiency class as defined in EU directive 2010/30/EU.
read / write
- minHandlingTime ↔ String?
-
Minimal product handling time (in business days).
read / write
- mobileLink ↔ String?
-
URL for the mobile-optimized version of your item's landing page.
read / write
- mobileLinkTemplate ↔ String?
-
URL template for merchant hosted local storefront optimized for mobile
devices.
read / write
- mpn ↔ String?
-
Manufacturer Part Number (MPN) of the item.
read / write
- multipack ↔ String?
-
The number of identical products in a merchant-defined multipack.
read / write
- offerId ↔ String?
-
A unique identifier for the item.
read / write
- pattern ↔ String?
-
The item's pattern (for example, polka dots).
read / write
- pause ↔ String?
-
Publication of this item should be temporarily paused.
read / write
- pickupMethod ↔ String?
-
The pick up option for the item.
read / write
- pickupSla ↔ String?
-
Item store pickup timeline.
read / write
- price ↔ Price?
-
Price of the item.
read / write
-
productDetails
↔ List<
ProductProductDetail> ? -
Technical specification or additional product details.
read / write
- productHeight ↔ ProductDimension?
-
The height of the product in the units provided.
read / write
-
productHighlights
↔ List<
String> ? -
Bullet points describing the most relevant highlights of a product.
read / write
- productLength ↔ ProductDimension?
-
The length of the product in the units provided.
read / write
-
productTypes
↔ List<
String> ? -
Categories of the item (formatted as in product data specification).
read / write
- productWeight ↔ ProductWeight?
-
The weight of the product in the units provided.
read / write
- productWidth ↔ ProductDimension?
-
The width of the product in the units provided.
read / write
-
promotionIds
↔ List<
String> ? -
The unique ID of a promotion.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- salePrice ↔ Price?
-
Advertised sale price of the item.
read / write
- salePriceEffectiveDate ↔ String?
-
Date range during which the item is on sale (see product data
specification ).
read / write
- sellOnGoogleQuantity ↔ String?
-
The quantity of the product that is available for selling on Google.
read / write
-
shipping
↔ List<
ProductShipping> ? -
Shipping rules.
read / write
- shippingHeight ↔ ProductShippingDimension?
-
Height of the item for shipping.
read / write
- shippingLabel ↔ String?
-
The shipping label of the product, used to group product in account-level
shipping rules.
read / write
- shippingLength ↔ ProductShippingDimension?
-
Length of the item for shipping.
read / write
- shippingWeight ↔ ProductShippingWeight?
-
Weight of the item for shipping.
read / write
- shippingWidth ↔ ProductShippingDimension?
-
Width of the item for shipping.
read / write
-
shoppingAdsExcludedCountries
↔ List<
String> ? -
List of country codes (ISO 3166-1 alpha-2) to exclude the offer from
Shopping Ads destination.
read / write
-
sizes
↔ List<
String> ? -
Size of the item.
read / write
- sizeSystem ↔ String?
-
System in which the size is specified.
read / write
- sizeType ↔ String?
-
The cut of the item.
read / write
- source ↔ String?
-
The source of the offer, that is, how the offer was created.
read / write
- subscriptionCost ↔ ProductSubscriptionCost?
-
Number of periods (months or years) and amount of payment per period for
an item with an associated subscription contract.
read / write
- targetCountry ↔ String?
-
The CLDR territory code for the item's country of sale.
read / write
- taxCategory ↔ String?
-
The tax category of the product, used to configure detailed tax nexus in
account-level tax settings.
read / write
-
taxes
↔ List<
ProductTax> ? -
Tax information.
read / write
- title ↔ String?
-
Title of the item.
read / write
- transitTimeLabel ↔ String?
-
The transit time label of the product, used to group product in
account-level transit time tables.
read / write
- unitPricingBaseMeasure ↔ ProductUnitPricingBaseMeasure?
-
The preference of the denominator of the unit price.
read / write
- unitPricingMeasure ↔ ProductUnitPricingMeasure?
-
The measure and dimension of an item.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited