(cls, data: Any)
| 77 | |
| 78 | @classmethod |
| 79 | def from_dict(cls, data: Any) -> "MacOSConfig | None": |
| 80 | if not isinstance(data, dict): |
| 81 | return None |
| 82 | return cls( |
| 83 | title_regex=_as_string(data.get("title_regex")), |
| 84 | screencap=_as_string(data.get("screencap")), |
| 85 | input=_as_string(data.get("input")), |
| 86 | ) |
| 87 | |
| 88 | |
| 89 | @dataclass(frozen=True) |
nothing calls this directly
no test coverage detected