code: public Map<String, Object> toMap(QueryParameters params) {
          Map<String, Object> result = null;
  
          if (params != null) {
              result = params.toMap();
          }
  
          return result;
      }
docs: {@inheritDoc}