CatalogProduct class
One product in a catalog. priceMinor is minor units of currency.
Constructors
- CatalogProduct({required String id, required String retailerId, required String name, String? description, String? availability, String? condition, int? priceMinor, String? currency, String? imageUrl, String? url})
-
Creates a product.
const
-
CatalogProduct.fromJson(Map<
String, dynamic> json) -
Reads a product.
factory
Properties
- availability → String?
-
in stock,out of stock, and so on.final - condition → String?
-
new,refurbishedorused.final - currency → String?
-
The currency the price is in.
final
- description → String?
-
Its description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The product's id on the ad platform.
final
- imageUrl → String?
-
The product image.
final
- name → String
-
The product's name.
final
- priceMinor → int?
-
Minor units of currency.
final
- retailerId → String
-
Your own key for the product.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String?
-
The product page.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited