Class: ProtobufJsonPayloadConverter
protobufs.ProtobufJsonPayloadConverter
Converts between protobufjs Message instances and serialized JSON Payload
Hierarchy
-
ProtobufPayloadConverter↳
ProtobufJsonPayloadConverter
Constructors
constructor
• new ProtobufJsonPayloadConverter(root?): ProtobufJsonPayloadConverter
Parameters
| Name | Type | Description |
|---|---|---|
root? | unknown | The value returned from patchProtobufRoot |
Returns
Overrides
ProtobufPayloadConverter.constructor
Properties
encodingType
• encodingType: "json/protobuf"
Overrides
ProtobufPayloadConverter.encodingType
Methods
fromPayload
▸ fromPayload<T>(content): T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
content | IPayload |
Returns
T
Overrides
ProtobufPayloadConverter.fromPayload
toPayload
▸ toPayload(value): undefined | IPayload
Parameters
| Name | Type |
|---|---|
value | unknown |
Returns
undefined | IPayload
Overrides
ProtobufPayloadConverter.toPayload