undeleteDocument method
Implementation
Future<DecryptedDocument> undeleteDocument(String sdkId, Document document) async {
final res = await _methodChannel.invokeMethod<String>(
'DocumentApi.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 DecryptedDocument.fromJSON(parsedResJson);
}