updateRoleMapping method

Future<Map<String, dynamic>> updateRoleMapping(
  1. Map<String, dynamic> mapping
)

Updates the internal role storage mapping.

Implementation

Future<Map<String, dynamic>> updateRoleMapping(
    Map<String, dynamic> mapping) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'updateRoleMapping',
    body: mapping,
  ));

  return response.result as Map<String, dynamic>;
}