addType('id', 'integer'); $this->addType('botId', 'integer'); $this->addType('messageId', 'integer'); $this->addType('nodeId', 'integer'); $this->addType('lastIndexedAt', 'integer'); $this->addType('createdAt', 'integer'); $this->addType('updatedAt', 'integer'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'bot_id' => $this->botId, 'room_token' => $this->roomToken, 'actor_id' => $this->actorId, 'message_id' => $this->messageId, 'node_id' => $this->nodeId, 'attachment_id' => $this->attachmentId, 'display_name' => $this->displayName, 'mime_type' => $this->mimeType, 'checksum' => $this->checksum, 'vision_model' => $this->visionModel, 'analysis_text' => $this->analysisText, 'status' => $this->status, 'error_message' => $this->errorMessage, 'last_indexed_at' => $this->lastIndexedAt, 'created_at' => $this->createdAt, 'updated_at' => $this->updatedAt, ]; } }