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 a json string to the corresponding instance of the `ADConfig` class.
  Raises ValueError if the input is not a json string.
docstr_tok: ["Converts","a","json","string","to","the","corresponding","instance","of","the","`","ADConfig","`","class",".","Raises","ValueError","if","the","input","is","not","a","json","string","."]
code: def from_json(obj: Any) -> "ADConfig":
      """Converts a json string to the corresponding instance of the `ADConfig` class.
      Raises ValueError if the input is not a json string.
      """
      try:
          ad_dict = json.loads(obj)
      except Exception:
          raise ValueError(f"The input ({obj}) is not a json string.")
  
      return ADConfig.from_dict(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 3 for calling the ADConfig obj's underlying member method code with example usage: obj.from_json(obj) and returns: ADConfig