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