UserSearchResult constructor
UserSearchResult(
- Kuzzle kuzzle, {
- KuzzleRequest? request,
- required KuzzleResponse response,
Implementation
UserSearchResult(
Kuzzle kuzzle, {
KuzzleRequest? request,
required KuzzleResponse response,
}) : super(kuzzle, request: request, response: response) {
searchAction = 'searchUsers';
scrollAction = 'scrollUsers';
hits = response.result['hits']
.map((hit) => KuzzleUser(kuzzle,
uid: hit['_id'] as String?,
content: hit['_source'] as Map<String, dynamic>?,
meta: hit['_meta'] as Map<String, dynamic>?))
.toList() as List<dynamic>?;
}