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