code: private void addQueryParams(final Request request) {
          if (from != null) {
              request.addQueryParam("From", from);
          }
  
          if (to != null) {
              request.addQueryParam("To", to);
          }
  
          if (dateCreatedOnOrBefore != null) {
              request.addQueryParam("DateCreatedOnOrBefore", dateCreatedOnOrBefore.toString());
          }
  
          if (dateCreatedAfter != null) {
              request.addQueryParam("DateCreatedAfter", dateCreatedAfter.toString());
          }
  
          if (getPageSize() != null) {
              request.addQueryParam("PageSize", Integer.toString(getPageSize()));
          }
      }
docs: Add the requested query string arguments to the Request.
  
  @param request Request to add query string arguments to