in generator/dashboards/dashboard.py [0:0]
def to_dict(self) -> dict:
"""Dashboard instance represented as a dict."""
return {
self.name: {
"title": self.title,
"type": self.type,
"layout": self.layout,
"namespace": self.namespace,
"tables": self.tables,
}
}