class_docstr: Config for providing parameters to the Anomaly Detection library.
class_docstr_tok: ["Config","for","providing","parameters","to","the","Anomaly","Detection","library","."]
docstr: Converts an instance of the `ADConfig` class to its json string format.
docstr_tok: ["Converts","an","instance","of","the","`","ADConfig","`","class","to","its","json","string","format","."]
code: def to_json(self) -> str:
      """Converts an instance of the `ADConfig` class to its json string format."""
      ad_dict = self.to_dict()
      return json.dumps(ad_dict)
  
file_path: greykite/greykite/detection/detector/config.py
imports: import json
  from dataclasses import dataclass
  from typing import Any
  from typing import List
  from typing import Optional
  from greykite.common.python_utils import assert_equal
  from greykite.framework.templates.autogen.forecast_config import from_bool
  from greykite.framework.templates.autogen.forecast_config import from_float
  from greykite.framework.templates.autogen.forecast_config import from_int
  from greykite.framework.templates.autogen.forecast_config import from_list_float
  from greykite.framework.templates.autogen.forecast_config import from_list_list_str
  from greykite.framework.templates.autogen.forecast_config import from_none
  from greykite.framework.templates.autogen.forecast_config import from_str
  from greykite.framework.templates.autogen.forecast_config import from_union
label_desc: Use image node_id 4 for calling the ADConfig obj's underlying member method code with example usage: obj.to_json() and returns: json