{Function} decode A function that takes the body property from an AMQP message
and returns the decoded message body. If it cannot decode the body then it returns the body
as-is.
Type declaration
(body: any): any
Parameters
body: any
Returns any
encode
encode:(body: any) => any
property
{Function} encode A function that takes the body property from an EventData object
and returns an encoded body (some form of AMQP type).
Describes the transformations that can be performed to encode/decode the data before sending it on (or receiving it from) the wire.