> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# Product

> Protobuf class Product generated from WAProto.

Defined in: [WAProto/index.d.ts:7176](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7176)

## Implements

* [`IProduct`](/proto-reference/Message/ListMessage/interfaces/IProduct)

## Constructors

### new Product()

> **new Product**(`p`?): [`Product`](/proto-reference/Message/ListMessage/classes/Product)

Defined in: [WAProto/index.d.ts:7177](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7177)

#### Parameters

##### p?

[`IProduct`](/proto-reference/Message/ListMessage/interfaces/IProduct)

#### Returns

[`Product`](/proto-reference/Message/ListMessage/classes/Product)

## Properties

### productId?

> `optional` **productId**: `null` | `string`

Defined in: [WAProto/index.d.ts:7178](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7178)

#### Implementation of

[`IProduct`](/proto-reference/Message/ListMessage/interfaces/IProduct).[`productId`](/proto-reference/Message/ListMessage/interfaces/IProduct#productid)

## Methods

### create()

> `static` **create**(`properties`?): [`Product`](/proto-reference/Message/ListMessage/classes/Product)

Defined in: [WAProto/index.d.ts:7179](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7179)

#### Parameters

##### properties?

[`IProduct`](/proto-reference/Message/ListMessage/interfaces/IProduct)

#### Returns

[`Product`](/proto-reference/Message/ListMessage/classes/Product)

***

### decode()

> `static` **decode**(`r`, `l`?): [`Product`](/proto-reference/Message/ListMessage/classes/Product)

Defined in: [WAProto/index.d.ts:7181](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7181)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`Product`](/proto-reference/Message/ListMessage/classes/Product)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:7180](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7180)

#### Parameters

##### m

[`IProduct`](/proto-reference/Message/ListMessage/interfaces/IProduct)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`Product`](/proto-reference/Message/ListMessage/classes/Product)

Defined in: [WAProto/index.d.ts:7182](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7182)

#### Parameters

##### d

#### Returns

[`Product`](/proto-reference/Message/ListMessage/classes/Product)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:7185](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7185)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:7184](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7184)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:7183](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7183)

#### Parameters

##### m

[`Product`](/proto-reference/Message/ListMessage/classes/Product)

##### o?

`IConversionOptions`

#### Returns

`object`
