Convert to dictionary.
(self)
| 616 | return cls(**data) |
| 617 | |
| 618 | def to_dict(self) -> Dict[str, Any]: |
| 619 | """Convert to dictionary.""" |
| 620 | return { |
| 621 | "api_key": self._api_key, |
| 622 | "workspace_id": self._workspace_id, |
| 623 | "base_url": self.base_url, |
| 624 | "input_type": self._input_type, |
| 625 | } |
| 626 | |
| 627 | def __getstate__(self): |
| 628 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected