Skip to main content

Class: ProtobufJsonPayloadConverter

Converts between protobufjs Message instances and serialized JSON Payload

Extends​

  • ProtobufPayloadConverter

Constructors​

Constructor​

new ProtobufJsonPayloadConverter(root?): ProtobufJsonPayloadConverter

Parameters​

root?​

unknown

The value returned from patchProtobufRoot

Returns​

ProtobufJsonPayloadConverter

Overrides​

ProtobufPayloadConverter.constructor

Properties​

encodingType​

encodingType: "json/protobuf"

Overrides​

ProtobufPayloadConverter.encodingType

Methods​

fromPayload()​

fromPayload<T>(content): T

Type Parameters​

T​

T

Parameters​

content​

IPayload

Returns​

T

Overrides​

ProtobufPayloadConverter.fromPayload


toPayload()​

toPayload(value): IPayload | undefined

Parameters​

value​

unknown

Returns​

IPayload | undefined

Overrides​

ProtobufPayloadConverter.toPayload