getMessageAsJson method

dynamic getMessageAsJson()

Returns the value that was stored in this message as a JSON string.

See setMessageAsJson

Implementation

dynamic getMessageAsJson() {
  if (message == null) return null;
  var temp = message;
  return json.decode(temp!);
}