Convert this HistoryItem into a dictionary for use in persistent JSON history files.
(self)
| 116 | return ret_str |
| 117 | |
| 118 | def to_dict(self) -> dict[str, Any]: |
| 119 | """Convert this HistoryItem into a dictionary for use in persistent JSON history files.""" |
| 120 | return {HistoryItem._statement_field: self.statement.to_dict()} |
| 121 | |
| 122 | @staticmethod |
| 123 | def from_dict(source_dict: dict[str, Any]) -> "HistoryItem": |