createRole method
Creates a new role.
Implementation
Future<KuzzleRole> createRole(String id, Map<String, dynamic> controllers,
{bool? waitForRefresh, bool? force}) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'createRole',
uid: id,
waitForRefresh: waitForRefresh,
force: force,
body: <String, dynamic>{
'controllers': controllers,
},
));
return KuzzleRole.fromKuzzleResponse(kuzzle, response);
}