listRoles static method

Future<Result> listRoles([
  1. String? namespace
])

list current user's roles

Implementation

static Future<Result> listRoles([String? namespace]) async {
  final Result result = await get('/api/v2/users/me/roles' +
      (namespace == null ? "" : "?namespace=" + namespace));
  return result;
}