Convert to dictionary for JSON serialization. Returns: Dictionary representation of the request
(self)
| 74 | request_id: str = field(default_factory=lambda: f"req_{int(time.time() * 1000)}") |
| 75 | |
| 76 | def to_dict(self) -> dict[str, Any]: |
| 77 | """Convert to dictionary for JSON serialization. |
| 78 | |
| 79 | Returns: |
| 80 | Dictionary representation of the request |
| 81 | """ |
| 82 | return asdict(self) |
| 83 | |
| 84 | @classmethod |
| 85 | def from_dict(cls, data: dict[str, Any]) -> "PackageRequest": |
no outgoing calls