exists method

Future<bool> exists({
  1. required String secretId,
  2. String? delegatedTo,
  3. String? forIdentity,
})

Implementation

Future<bool> exists({required String secretId, String? delegatedTo, String? forIdentity}) async {
  final req = <String, dynamic>{"secret_id": secretId, "delegated_to": delegatedTo, "for_identity": forIdentity};

  final res = await _invoke("exists", req);
  if (res is JsonContent && res.json["exists"] is bool) {
    return res.json["exists"] as bool;
  }
  throw _unexpectedResponseError("exists");
}