getCurrentUser method

Future<KuzzleUser> getCurrentUser()

Fetches the current user.

Implementation

Future<KuzzleUser> getCurrentUser() async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'getCurrentUser',
  ));

  return KuzzleUser.fromKuzzleResponse(kuzzle, response);
}