decodeFromByteArray
Extension function to decode a ByteArray to a QueueMessage using the provided Json instance.
Return
The decoded QueueMessage.
Parameters
json
The Json instance used for decoding.
Throws
if the ByteArray is null.