encodeToByteArray

Extension function to encode a QueueMessage to a ByteArray using the provided Json instance.

Return

The encoded ByteArray.

Parameters

json

The Json instance used for encoding.