undeleteDocument method

Future<EncryptedDocument> undeleteDocument(
  1. String sdkId,
  2. Document document
)

Implementation

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