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

# WaffleAccountLinkStateAction

> Protobuf class WaffleAccountLinkStateAction generated from WAProto.

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

## Implements

* [`IWaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction)

## Constructors

### new WaffleAccountLinkStateAction()

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

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

#### Parameters

##### p?

[`IWaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction)

#### Returns

[`WaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/classes/WaffleAccountLinkStateAction)

## Properties

### linkState?

> `optional` **linkState**: `null` | [`AccountLinkState`](/proto-reference/SyncActionValue/WaffleAccountLinkStateAction/enumerations/AccountLinkState)

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

#### Implementation of

[`IWaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction).[`linkState`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction#linkstate)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IWaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction)

#### Returns

[`WaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/classes/WaffleAccountLinkStateAction)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`WaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/classes/WaffleAccountLinkStateAction)

***

### encode()

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

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

#### Parameters

##### m

[`IWaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/interfaces/IWaffleAccountLinkStateAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`WaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/classes/WaffleAccountLinkStateAction)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`WaffleAccountLinkStateAction`](/proto-reference/SyncActionValue/classes/WaffleAccountLinkStateAction)

##### o?

`IConversionOptions`

#### Returns

`object`
