$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(), ]; } public function getUserId() { return $this->userId; } public function setUserId($userId) { $this->userId = $userId; } public function getFileId() { return $this->fileId; } public function setFileId($fileId) { $this->fileId = $fileId; } public function getType() { return $this->type; } public function setType($type) { $this->type = $type; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getValue() { return $this->value; } public function setValue($value) { $this->value = $value; } public function getContent() { return $this->content; } public function setContent($content) { $this->content = $content; } public function getLastModified() { return $this->lastModified; } public function setLastModified($lastModified) { $this->lastModified = $lastModified; } }