Convert to dictionary for JSON serialization.
(self)
| 108 | latency_ms: LatencyStats = field(default_factory=LatencyStats) |
| 109 | |
| 110 | def to_dict(self) -> dict: |
| 111 | """Convert to dictionary for JSON serialization.""" |
| 112 | d = asdict(self) |
| 113 | d['latency_ms'] = asdict(self.latency_ms) |
| 114 | return d |
| 115 | |
| 116 | |
| 117 | class MockConfig: |