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

# PollOption

> Protobuf class PollOption generated from WAProto.

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

## Implements

* [`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption)

## Constructors

### new PollOption()

> **new PollOption**(`p`?): [`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

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

#### Parameters

##### p?

[`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption)

#### Returns

[`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

## Properties

### hash?

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

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

#### Implementation of

[`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption).[`hash`](/proto-reference/MsgOpaqueData/interfaces/IPollOption#hash)

***

### name?

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

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

#### Implementation of

[`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption).[`name`](/proto-reference/MsgOpaqueData/interfaces/IPollOption#name)

## Methods

### create()

> `static` **create**(`properties`?): [`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

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

#### Parameters

##### properties?

[`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption)

#### Returns

[`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

***

### decode()

> `static` **decode**(`r`, `l`?): [`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

***

### encode()

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

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

#### Parameters

##### m

[`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

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

#### Parameters

##### d

#### Returns

[`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PollOption`](/proto-reference/MsgOpaqueData/classes/PollOption)

##### o?

`IConversionOptions`

#### Returns

`object`
