Skip to main content

Class: UndefinedPayloadConverter

Converts between JS undefined and NULL Payload

Implements​

Constructors​

Constructor​

new UndefinedPayloadConverter(): UndefinedPayloadConverter

Returns​

UndefinedPayloadConverter

Properties​

encodingType​

encodingType: "binary/null"

Implementation of​

PayloadConverterWithEncoding.encodingType

Methods​

fromPayload()​

fromPayload<T>(_content): T

Converts a Payload back to a value.

Type Parameters​

T​

T

Parameters​

_content​

IPayload

Returns​

T

Implementation of​

PayloadConverterWithEncoding.fromPayload


toPayload()​

toPayload(value): IPayload | undefined

Converts a value to a Payload.

Parameters​

value​

unknown

The value to convert. Example values include the Workflow args sent from the Client and the values returned by a Workflow or Activity.

Returns​

IPayload | undefined

The Payload, or undefined if unable to convert.

Implementation of​

PayloadConverterWithEncoding.toPayload