Class: BinaryPayloadConverter
Converts between binary data types and RAW Payload
Implements
Constructors
Constructor
new BinaryPayloadConverter():
BinaryPayloadConverter
Returns
BinaryPayloadConverter
Properties
encodingType
encodingType:
"binary/plain"
Implementation of
PayloadConverterWithEncoding.encodingType
Methods
fromPayload()
fromPayload<
T>(content):T
Converts a Payload back to a value.
Type Parameters
T
T
Parameters
content
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.