deleteDocuments method

Future<List<DocIdentifier>> deleteDocuments(
  1. String sdkId,
  2. List<Document> documents
)

Implementation

Future<List<DocIdentifier>> deleteDocuments(String sdkId, List<Document> documents) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentApi.deleteDocuments',
		{
			"sdkId": sdkId,
			"documents": jsonEncode(documents.map((x0) => Document.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteDocuments");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DocIdentifier.fromJSON(x1) ).toList();
}