Return hash based on the model fields.
(self)
| 109 | return NotImplemented |
| 110 | |
| 111 | def __hash__(self) -> int: |
| 112 | """Return hash based on the model fields.""" |
| 113 | data = self.model_dump() |
| 114 | return hash(tuple(sorted(data.items()))) |
| 115 | |
| 116 | |
| 117 | user_data_adapter = TypeAdapter(UserData) |