(self)
| 90 | return AbortRequest(reason) |
| 91 | |
| 92 | def to_dict(self) -> dict: |
| 93 | result: dict = {} |
| 94 | if self.reason is not None: |
| 95 | result["reason"] = from_union([lambda x: to_enum(AbortReason, x), from_none], self.reason) |
| 96 | return result |
| 97 | |
| 98 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 99 | @dataclass |
nothing calls this directly
no test coverage detected