do Encode
Encodes the given input into the wire representation based on the data format.
Return
the encoded wire representation of the payload.
Parameters
input
the object to encode.
type
reified type of the object to encode.
Encodes the given input into the wire representation based on the data format.
the encoded wire representation of the payload.
the object to encode.
reified type of the object to encode.