public function toArray()
  {
    $params = [];

    if (isset($this->searchTerm))
    {
      $params['q'] = $this->searchTerm;
    }

    if (isset($this->parameters))
    {
      foreach ($this->parameters as $paramKey => $paramVal)
      {
        $params[$paramKey] = $paramVal;
      }
    }

    return $params;
  }