deleteSecondaryAttachment method

Future<EncryptedDocument> deleteSecondaryAttachment(
  1. String sdkId,
  2. String documentId,
  3. String key,
  4. String rev,
)

Implementation

Future<EncryptedDocument> deleteSecondaryAttachment(String sdkId, String documentId, String key, String rev) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentBasicApi.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);
}