*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'platform' => $this->platform?->value, 'display_name' => $this->display_name, 'username' => $this->username, 'is_active' => $this->is_active, 'status' => $this->status?->value, ]; } }