listAuthorizedResources static method
list authorized resources that current user's can access
Implementation
static Future<Map> listAuthorizedResources(String namespace,
[String? resourceType]) async {
Map map = {};
map.putIfAbsent('namespace', () => namespace);
if (resourceType != null) {
map.putIfAbsent('resourceType', () => resourceType);
}
final Result result =
await post('/api/v2/users/resource/authorized', jsonEncode(map));
return result.data;
}