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

# TransformerArg

> Protobuf class TransformerArg generated from WAProto.

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

## Implements

* [`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg)

## Constructors

### new TransformerArg()

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

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

#### Parameters

##### p?

[`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg)

#### Returns

[`TransformerArg`](/proto-reference/UserPassword/classes/TransformerArg)

## Properties

### key?

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

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

#### Implementation of

[`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg).[`key`](/proto-reference/UserPassword/interfaces/ITransformerArg#key)

***

### value?

> `optional` **value**: `null` | [`IValue`](/proto-reference/UserPassword/TransformerArg/interfaces/IValue)

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

#### Implementation of

[`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg).[`value`](/proto-reference/UserPassword/interfaces/ITransformerArg#value)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg)

#### Returns

[`TransformerArg`](/proto-reference/UserPassword/classes/TransformerArg)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`TransformerArg`](/proto-reference/UserPassword/classes/TransformerArg)

***

### encode()

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

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

#### Parameters

##### m

[`ITransformerArg`](/proto-reference/UserPassword/interfaces/ITransformerArg)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`TransformerArg`](/proto-reference/UserPassword/classes/TransformerArg)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`TransformerArg`](/proto-reference/UserPassword/classes/TransformerArg)

##### o?

`IConversionOptions`

#### Returns

`object`
