Class: UndefinedPayloadConverter
common.UndefinedPayloadConverter
Converts between JS undefined and NULL Payload
Implements
Constructors
constructor
• new UndefinedPayloadConverter(): UndefinedPayloadConverter
Returns
Properties
encodingType
• encodingType: "binary/null"
Implementation of
PayloadConverterWithEncoding.encodingType
Methods
fromPayload
▸ fromPayload<T
>(_content
): T
Converts a Payload back to a value.
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
_content | IPayload |
Returns
T
Implementation of
PayloadConverterWithEncoding.fromPayload
toPayload
▸ toPayload(value
): undefined
| IPayload
Converts a value to a Payload.
Parameters
Name | Type | Description |
---|---|---|
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
undefined
| IPayload
The Payload, or undefined
if unable to convert.