code: def __item_data(self, model, index):
          
          item = model.items[index]
  
          data = {
              "name": item.name,
              "data": item.data,
              "doc": getattr(item, "doc", None),
              "path": getattr(item, "path", None),
          }
  
          return data
docs: Return item data as dict