replaceUser method

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

Replaces a user with new configuration.

Implementation

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

  return KuzzleUser.fromKuzzleResponse(kuzzle, response);
}