class_docstr: Utility class for the cluster state concept of Databricks cluster.
class_docstr_tok: ["Utility","class","for","the","cluster","state","concept","of","Databricks","cluster","."]
code: def to_json(self) -> str:
      return json.dumps(self.__dict__)
  
imports: from __future__ import annotations
  import json
  from typing import Any
  from requests import exceptions
  from airflow.exceptions import AirflowException
  from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
label_desc: Use image node_id 6 for calling the ClusterState obj's underlying member method code with example usage: obj.to_json() and returns: json