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