public function toArray()

in php/src/Models/Params.php [69:109]


  public function toArray($noStream = false)
  {
    $res = [];
    if (null !== $this->action) {
      $res['action'] = $this->action;
    }

    if (null !== $this->version) {
      $res['version'] = $this->version;
    }

    if (null !== $this->protocol) {
      $res['protocol'] = $this->protocol;
    }

    if (null !== $this->pathname) {
      $res['pathname'] = $this->pathname;
    }

    if (null !== $this->method) {
      $res['method'] = $this->method;
    }

    if (null !== $this->authType) {
      $res['authType'] = $this->authType;
    }

    if (null !== $this->bodyType) {
      $res['bodyType'] = $this->bodyType;
    }

    if (null !== $this->reqBodyType) {
      $res['reqBodyType'] = $this->reqBodyType;
    }

    if (null !== $this->style) {
      $res['style'] = $this->style;
    }

    return $res;
  }