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

# AppStateSyncKey

> Protobuf class AppStateSyncKey generated from WAProto.

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

## Implements

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

## Constructors

### new AppStateSyncKey()

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

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

#### Parameters

##### p?

[`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey)

#### Returns

[`AppStateSyncKey`](/proto-reference/Message/classes/AppStateSyncKey)

## Properties

### keyData?

> `optional` **keyData**: `null` | [`IAppStateSyncKeyData`](/proto-reference/Message/interfaces/IAppStateSyncKeyData)

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

#### Implementation of

[`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey).[`keyData`](/proto-reference/Message/interfaces/IAppStateSyncKey#keydata)

***

### keyId?

> `optional` **keyId**: `null` | [`IAppStateSyncKeyId`](/proto-reference/Message/interfaces/IAppStateSyncKeyId)

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

#### Implementation of

[`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey).[`keyId`](/proto-reference/Message/interfaces/IAppStateSyncKey#keyid)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey)

#### Returns

[`AppStateSyncKey`](/proto-reference/Message/classes/AppStateSyncKey)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`AppStateSyncKey`](/proto-reference/Message/classes/AppStateSyncKey)

***

### encode()

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

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

#### Parameters

##### m

[`IAppStateSyncKey`](/proto-reference/Message/interfaces/IAppStateSyncKey)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`AppStateSyncKey`](/proto-reference/Message/classes/AppStateSyncKey)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`AppStateSyncKey`](/proto-reference/Message/classes/AppStateSyncKey)

##### o?

`IConversionOptions`

#### Returns

`object`
