sendAsObject method
override
Sends an object into the queue. Before sending the object is converted into JSON string and wrapped in a MessageEnvelope.
correlationId
(optional) transaction id to trace execution through call chain.messageType
a message typevalue
an object value to be sent Return (optional) Future that receives null for success. Throws error
See send
Implementation
@override
Future sendAsObject(String? correlationId, String messageType, message) {
var envelope = MessageEnvelope(correlationId, messageType, message);
return send(correlationId, envelope);
}