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