open fun toEncodedRpcMessage(mapper: ObjectMapper!): Bytes! (source)
Encodes message to bytes
mapper - ObjectMapper!: the JSON mapper
JsonProcessingException - if an error was thrown while marshalling to JSON
Return
Bytes!: The byte representation for the request after it is marshalled into a JSON string.