listOrgs static method

Future<Result> listOrgs()

list organizations that current user is part of

Implementation

static Future<Result> listOrgs() async {
  if (currentUser != null) {
    return await get('/api/v2/users/' + currentUser!.id + "/orgs");
  } else {
    Result result = Result();
    result.code = 500;
    return result;
  }
}