def decode_dashboards(o: Dict[(str, Any)]) -> Any:
    '\n    Function to be passed into json.loads obj_hook parameter\n    Recreates the dashboard object from a json representation.\n    '
    from superset.connectors.druid.models import DruidCluster, DruidColumn, DruidDatasource, DruidMetric
    if ('__Dashboard__' in o):
        return Dashboard(**o['__Dashboard__'])
    if ('__Slice__' in o):
        return Slice(**o['__Slice__'])
    if ('__TableColumn__' in o):
        return TableColumn(**o['__TableColumn__'])
    if ('__SqlaTable__' in o):
        return SqlaTable(**o['__SqlaTable__'])
    if ('__SqlMetric__' in o):
        return SqlMetric(**o['__SqlMetric__'])
    if ('__DruidCluster__' in o):
        return DruidCluster(**o['__DruidCluster__'])
    if ('__DruidColumn__' in o):
        return DruidColumn(**o['__DruidColumn__'])
    if ('__DruidDatasource__' in o):
        return DruidDatasource(**o['__DruidDatasource__'])
    if ('__DruidMetric__' in o):
        return DruidMetric(**o['__DruidMetric__'])
    if ('__datetime__' in o):
        return datetime.strptime(o['__datetime__'], '%Y-%m-%dT%H:%M:%S')
    return o
Function to be passed into json.loads obj_hook parameter
Recreates the dashboard object from a json representation.
def decode_dashboards(o: Dict[(str, Any)]) -> Any:
    '\n    Function to be passed into json.loads obj_hook parameter\n    Recreates the dashboard object from a json representation.\n    '
    from superset.connectors.druid.models import DruidCluster, DruidColumn, DruidDatasource, DruidMetric
    if ('__Dashboard__' in o):
        return Dashboard(**o['__Dashboard__'])
    if ('__Slice__' in o):
        return Slice(**o['__Slice__'])
    if ('__TableColumn__' in o):
        return TableColumn(**o['__TableColumn__'])
    if ('__SqlaTable__' in o):
        return SqlaTable(**o['__SqlaTable__'])
    if ('__SqlMetric__' in o):
        return SqlMetric(**o['__SqlMetric__'])
    if ('__DruidCluster__' in o):
        return DruidCluster(**o['__DruidCluster__'])
    if ('__DruidColumn__' in o):
        return DruidColumn(**o['__DruidColumn__'])
    if ('__DruidDatasource__' in o):
        return DruidDatasource(**o['__DruidDatasource__'])
    if ('__DruidMetric__' in o):
        return DruidMetric(**o['__DruidMetric__'])
    if ('__datetime__' in o):
        return datetime.strptime(o['__datetime__'], '%Y-%m-%dT%H:%M:%S')
    return o