(self)
| 9610 | return SessionAuthStatus(is_authenticated, auth_type, copilot_plan, host, login, status_message) |
| 9611 | |
| 9612 | def to_dict(self) -> dict: |
| 9613 | result: dict = {} |
| 9614 | result["isAuthenticated"] = from_bool(self.is_authenticated) |
| 9615 | if self.auth_type is not None: |
| 9616 | result["authType"] = from_union([lambda x: to_enum(AuthInfoType, x), from_none], self.auth_type) |
| 9617 | if self.copilot_plan is not None: |
| 9618 | result["copilotPlan"] = from_union([from_str, from_none], self.copilot_plan) |
| 9619 | if self.host is not None: |
| 9620 | result["host"] = from_union([from_str, from_none], self.host) |
| 9621 | if self.login is not None: |
| 9622 | result["login"] = from_union([from_str, from_none], self.login) |
| 9623 | if self.status_message is not None: |
| 9624 | result["statusMessage"] = from_union([from_str, from_none], self.status_message) |
| 9625 | return result |
| 9626 | |
| 9627 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 9628 | @dataclass |
nothing calls this directly
no test coverage detected