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