code: public function jsonSerialize()
      {
          $json = parent::jsonSerialize();
  
          if (null !== $this->id) {
              $json['id'] = $this->id;
          }
          if (null !== $this->created) {
              $json['created'] = $this->created->format(\DateTime::ISO8601);
          }
          if (null !== $this->deleted) {
              $json['deleted'] = $this->deleted->format(\DateTime::ISO8601);
          }
          if (null !== $this->updatedBy) {
              $json['updatedBy'] = $this->updatedBy;
          }
  
          return $json;
      }
docs: Gets all data that should be available in a json representation.
  
  @return array an associative array of the available variables