undeleteMessage method

Future<Message> undeleteMessage(
  1. String sdkId,
  2. Message message
)

Implementation

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