getRole method

Future<KuzzleRole> getRole(
  1. String id
)

Gets a security role.

Implementation

Future<KuzzleRole> getRole(String id) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'getRole',
    uid: id,
  ));

  return KuzzleRole.fromKuzzleResponse(kuzzle, response);
}