, comment: string|null, asked: bool, updated_at: string} */ public function toArray($request): array { return [ 'message_id' => $this->message_id, 'rating' => $this->rating, 'tags' => $this->tags ?? [], 'comment' => $this->comment, 'asked' => $this->asked, 'updated_at' => $this->updated_at, ]; } }