encodeToString

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

Return

The encoded String.

Parameters

json

The Json instance used for encoding.