Return the contents of this report as a dict of builtin entries, suitable for serialization. This was originally the serialize_report() function from xdist (ca03269). Experimental method.
(self)
| 219 | ) |
| 220 | |
| 221 | def _to_json(self) -> dict[str, Any]: |
| 222 | """Return the contents of this report as a dict of builtin entries, |
| 223 | suitable for serialization. |
| 224 | |
| 225 | This was originally the serialize_report() function from xdist (ca03269). |
| 226 | |
| 227 | Experimental method. |
| 228 | """ |
| 229 | return _report_to_json(self) |
| 230 | |
| 231 | @classmethod |
| 232 | def _from_json(cls, reportdict: dict[str, object]) -> Self: |