(cls, data: Any)
| 58 | |
| 59 | @classmethod |
| 60 | def from_dict(cls, data: Any) -> "Win32Config | None": |
| 61 | if not isinstance(data, dict): |
| 62 | return None |
| 63 | return cls( |
| 64 | class_regex=_as_string(data.get("class_regex")), |
| 65 | window_regex=_as_string(data.get("window_regex")), |
| 66 | screencap=_as_string(data.get("screencap")), |
| 67 | mouse=_as_string(data.get("mouse")), |
| 68 | keyboard=_as_string(data.get("keyboard")), |
| 69 | ) |
| 70 | |
| 71 | |
| 72 | @dataclass(frozen=True) |
nothing calls this directly
no test coverage detected