, * comment: string|null, * asked: bool, * client: string|null, * account_type: string, * updated_at: string, * run_id: string|null, * question: string|null, * route: 'question'|'term'|'passage'|'chat'|null, * status: string|null, * deep: bool|null, * latency_ms: int|null * } */ public function toArray($request): array { $r = $this->resource; return [ 'message_id' => $r->message_id, 'rating' => (int) $r->rating, 'tags' => $r->tags, 'comment' => $r->comment, 'asked' => (bool) $r->asked, 'client' => $r->client, 'account_type' => $r->account_type, 'updated_at' => $r->updated_at, 'run_id' => $r->run_id, 'question' => $r->question, 'route' => $r->route, 'status' => $r->status, 'deep' => $r->deep === null ? null : (bool) $r->deep, 'latency_ms' => $r->latency_ms === null ? null : (int) $r->latency_ms, ]; } }