deleteMainAttachment method

Future<EncryptedDocument> deleteMainAttachment(
  1. String sdkId,
  2. String entityId,
  3. String rev
)

Implementation

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