createUser method

Future<KuzzleUser> createUser(
  1. String id,
  2. Map<String, dynamic> body, {
  3. bool? waitForRefresh,
})

Creates a new user

Implementation

Future<KuzzleUser> createUser(String id, Map<String, dynamic> body,
    {bool? waitForRefresh}) async {
  final response = await kuzzle.query(KuzzleRequest(
      controller: name,
      action: 'createUser',
      uid: id,
      waitForRefresh: waitForRefresh,
      body: body));

  return KuzzleUser.fromKuzzleResponse(kuzzle, response);
}