| 10258 | return EventsReadResult(cursor, cursor_status, events, has_more) |
| 10259 | |
| 10260 | def to_dict(self) -> dict: |
| 10261 | result: dict = {} |
| 10262 | result["cursor"] = from_str(self.cursor) |
| 10263 | result["cursorStatus"] = to_enum(EventsCursorStatus, self.cursor_status) |
| 10264 | result["events"] = from_list(lambda x: to_class(SessionEvent, x), self.events) |
| 10265 | result["hasMore"] = from_bool(self.has_more) |
| 10266 | return result |
| 10267 | |
| 10268 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 10269 | @dataclass |