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