deleteDocument method

Future<DocIdentifier> deleteDocument(
  1. String sdkId,
  2. Document document
)

Implementation

Future<DocIdentifier> deleteDocument(String sdkId, Document document) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DocumentBasicApi.deleteDocument',
		{
			"sdkId": sdkId,
			"document": jsonEncode(Document.encode(document)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteDocument");
	final parsedResJson = jsonDecode(res);
	return DocIdentifier.fromJSON(parsedResJson);
}