addType('id','integer'); } public function jsonSerialize() { return [ 'id' => $this->id, 'title' => $this->title, 'file_id' => $this->file_id ]; } }