Skip to main content

Class: BinaryPayloadConverter

common.BinaryPayloadConverter

Converts between binary data types and RAW Payload

Implements

Constructors

constructor

new 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

Name
T

Parameters

NameType
contentIPayload

Returns

T

Implementation of

PayloadConverterWithEncoding.fromPayload


toPayload

toPayload(value): undefined | IPayload

Converts a value to a Payload.

Parameters

NameType
valueunknown

Returns

undefined | IPayload

The Payload, or undefined if unable to convert.

Implementation of

PayloadConverterWithEncoding.toPayload