$this->getId(), 'userId' => $this->getUserId(), 'fileId' => $this->getFileId(), 'type' => $this->getType(), 'name' => $this->getName(), 'value' => static::conditional_json_decode($this->getValue()), 'content' => static::conditional_json_decode($this->getContent()), 'lastModified' => $this->getLastModified() ]; } public function toService() { return [ 'name' => $this->getName(), 'type' => $this->getType(), 'value' => $this->conditional_json_decode($this->getValue()), 'content' => $this->conditional_json_decode($this->getContent()), 'lastModified' => $this->getLastModified(), ]; } }