modifyMessage method

Future<DecryptedMessage> modifyMessage(
  1. String sdkId,
  2. DecryptedMessage entity
)

Implementation

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