Home > widget-integration > ProductModel > (constructor)
ProductModel.(constructor)
Constructs a new instance of the ProductModel class
Signature:
constructor(data: {
productId: string | number;
handle: string;
variants: ProductItemVariant$3[];
images?: ProductImage[];
optionsWithValues?: OptionsWithValues$2[];
});
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
{ productId: string | number; handle: string; variants: ProductItemVariant$3[]; images?: ProductImage[]; optionsWithValues?: OptionsWithValues$2[]; } |