(cls, data: Dict[str, Any])
| 134 | |
| 135 | @classmethod |
| 136 | def load_from(cls, data: Dict[str, Any]) -> BenchmarkRun: |
| 137 | return cls( |
| 138 | context=Context.load_from(data["context"]), |
| 139 | queries=[QueryRun.load_from(result) for result in data["queries"]], |
| 140 | ) |
| 141 | |
| 142 | @classmethod |
| 143 | def load_from_file(cls, path: Path) -> BenchmarkRun: |