KuzzleRole.fromKuzzleResponse constructor

KuzzleRole.fromKuzzleResponse(
  1. Kuzzle kuzzle,
  2. KuzzleResponse response
)

Implementation

KuzzleRole.fromKuzzleResponse(this.kuzzle, KuzzleResponse response) {
  uid = response.result['_id'] as String?;
  controllers =
      response.result['_source']['controllers'] as Map<String, dynamic>?;
}