(self)
| 292 | self.__loadData(value, itemKey) |
| 293 | |
| 294 | def toDict(self) -> dict: |
| 295 | item = self.invisibleRootItem() |
| 296 | |
| 297 | return { |
| 298 | item.child(i).text(): item.child(i).toObject() |
| 299 | for i in range(item.rowCount()) |
| 300 | } |
| 301 | |
| 302 | def toJson(self, ensure_ascii=False, indent=None, **kwargs) -> str: |
| 303 | return json.dumps( |