Product class
The processed product, built from multiple product inputs after applying rules and supplemental data sources.
This processed product matches what is shown in your Merchant Center account. Each product is built from exactly one primary data source product input, and multiple supplemental data source inputs. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved. All fields in the processed product and its sub-messages match the name of their corresponding attribute in the Product data specification with some exceptions.
Constructors
-
Product.new({AutomatedDiscounts? automatedDiscounts, String? contentLanguage, List<
CustomAttribute> ? customAttributes, String? dataSource, String? feedLabel, bool? legacyLocal, String? name, String? offerId, ProductAttributes? productAttributes, ProductStatus? productStatus, String? versionNumber}) - Product.fromJson(Map json_)
Properties
- automatedDiscounts ↔ AutomatedDiscounts?
-
The automated discounts information for the product.
getter/setter pair
- contentLanguage ↔ String?
-
The two-letter [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1)
language code for the product.
getter/setter pair
-
customAttributes
↔ List<
CustomAttribute> ? -
A list of custom (merchant-provided) attributes.
getter/setter pair
- dataSource ↔ String?
-
The primary data source of the product.
getter/setter pair
- feedLabel ↔ String?
-
The feed label lets you categorize and identify your products.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- legacyLocal ↔ bool?
-
Determines whether the product is only targeting local destinations
and whether the product name should be distinguished with a
local~
prefix.getter/setter pair - name ↔ String?
-
The name of the product.
getter/setter pair
- offerId ↔ String?
-
Your unique identifier for the product.
getter/setter pair
- productAttributes ↔ ProductAttributes?
-
A list of strongly-typed product attributes.
getter/setter pair
- productStatus ↔ ProductStatus?
-
The status of a product, data validation issues, that is, information
about a product computed asynchronously.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- versionNumber ↔ String?
-
Represents the existing version (freshness) of the product, which can be
used to preserve the right order when multiple updates are done at the
same time.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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