code: public PagedResult<Favorite> listFavorites(PaginationParameters parameters) throws SmartsheetException{
          String path = "favorites";
  
          if (parameters != null) {
              path += parameters.toQueryString();
          }
  
          return this.listResourcesWithWrapper(path, Favorite.class);
      }
docs: Gets a list of all of the user's Favorite items.
  
  It mirrors to the following Smartsheet REST API method: GET /favorites
  
  Exceptions:
  IllegalArgumentException : if any argument is null
  InvalidRequestException : if there is any problem with the REST API request
  AuthorizationException : if there is any problem with the REST API authorization(access token)
  ResourceNotFoundException : if the resource can not be found
  ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
  SmartsheetRestException : if there is any other REST API related error occurred during the operation
  SmartsheetException : if there is any other error occurred during the operation
  
  @param parameters pagination parameters
  @return a single Favorite object or an array of Favorite objects
  @throws SmartsheetException the smartsheet exception