Create an instance from a dictionary.
(cls, data: Dict[str, Any])
| 74 | |
| 75 | @classmethod |
| 76 | def from_dict(cls, data: Dict[str, Any]): |
| 77 | """Create an instance from a dictionary.""" |
| 78 | return cls(**data) |
| 79 | |
| 80 | def to_dict(self) -> Dict[str, Any]: |
| 81 | """Convert to dictionary.""" |
nothing calls this directly
no outgoing calls
no test coverage detected