color = $color; } public function jsonSerialize() { return [ 'id' => $this->id, 'title' => $this->title, 'content' => $this->content, 'timestamp' => $this->timestamp, 'colorid' => $this->colorId, 'color' => $this->color, 'userid' => $this->userId, 'sharedwith' => $this->sharedWith, 'isshared' => $this->isShared ]; } }