<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self):
 """Converts the table to a dict."""

        return {"name": self.table_name, "kind": self.table_kind, "data": [r.to_dict() for r in self]}