(self)
| 1244 | return _ConnectResult(ok, protocol_version, version) |
| 1245 | |
| 1246 | def to_dict(self) -> dict: |
| 1247 | result: dict = {} |
| 1248 | result["ok"] = from_bool(self.ok) |
| 1249 | result["protocolVersion"] = from_int(self.protocol_version) |
| 1250 | result["version"] = from_str(self.version) |
| 1251 | return result |
| 1252 | |
| 1253 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 1254 | class ConnectedRemoteSessionMetadataKind(Enum): |