deleteDocument method
Deletes a document.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
Future<void> deleteDocument(DeleteDocumentRequest request) async {
final url = _endPoint.replace(
path: '/v1/${request.name}',
queryParameters: {
if (request.currentDocument?.exists case final $1?)
'currentDocument.exists': '${$1}',
if (request.currentDocument?.updateTime case final $1?)
'currentDocument.updateTime': $1.toJson(),
},
);
await _client.delete(url);
}