authsomeListRoles method

Future<RoleListResponse> authsomeListRoles({
  1. required String token,
})

List roles GET /v1/roles

Implementation

Future<RoleListResponse> authsomeListRoles({required String token}) async {
  final path = '/v1/roles';
  final res = await _request(
'GET',
    path,
    token: token,
  );
  return RoleListResponse.fromJson(Map<String, dynamic>.from(res as Map));
}