getMessage method
Implementation
Future<Message> getMessage(String sdkId, String entityId) async {
final res = await _methodChannel.invokeMethod<String>(
'MessageApi.tryAndRecover.getMessage',
{
"sdkId": sdkId,
"entityId": jsonEncode(entityId),
}
);
if (res == null) throw AssertionError("received null result from platform method getMessage");
final parsedResJson = jsonDecode(res);
return Message.fromJSON(parsedResJson);
}