code: public function jsonSerialize()
      {
          $json = [];
  
          if (null !== $this->offset) {
              $json['offset'] = $this->offset;
          }
          if (null !== $this->limit) {
              $json['limit'] = $this->limit;
          }
          if (null !== $this->freeText) {
              $json['freeText'] = $this->freeText;
          }
          if (null !== $this->objectIds && !empty($this->objectIds)) {
              $json['objectIds'] = $this->objectIds;
          }
          if (null !== $this->createdByIds && !empty($this->createdByIds)) {
              $json['createdByIds'] = $this->createdByIds;
          }
          if (null !== $this->createdRange) {
              $json['createdRange'] = $this->createdRange;
          }
          if (null !== $this->updatedByIds && !empty($this->updatedByIds)) {
              $json['updatedByIds'] = $this->updatedByIds;
          }
          if (null !== $this->updatedRange) {
              $json['updatedRange'] = $this->updatedRange;
          }
          if (null !== $this->parentId) {
              $json['parentId'] = $this->parentId;
          }
          if (null !== $this->properties && !empty($this->properties)) {
              $json['properties'] = $this->properties;
          }
          if (null !== $this->name) {
              $json['name'] = $this->name;
          }
          if (null !== $this->sortFields && !empty($this->sortFields)) {
              $json['sortFields'] = $this->sortFields;
          }
  
          return $json;
      }
docs: Gets all data that should be available in a json representation.
  
  @return array an associative array of the available variables