class_docstr: DatasourceConfigBase
class_docstr_tok: ["DatasourceConfigBase"]
docstr: Create an instance of DatasourceConfigBase from a JSON string
docstr_tok: ["Create","an","instance","of","DatasourceConfigBase","from","a","JSON","string"]
code: def from_json(
      cls, json_str: str
  ) -> Union(
      DatasourceConfigAzure,
      DatasourceConfigGCS,
      DatasourceConfigLIGHTLY,
      DatasourceConfigLOCAL,
      DatasourceConfigOBS,
      DatasourceConfigS3,
      DatasourceConfigS3DelegatedAccess,
  ):
      """Create an instance of DatasourceConfigBase from a JSON string"""
      return cls.from_dict(json.loads(json_str))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_base.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  import lightly.openapi_generated.swagger_client.models
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictStr, constr, validator
  from lightly.openapi_generated.swagger_client.models.datasource_purpose import DatasourcePurpose
label_desc: Use image node_id 5 for calling the DatasourceConfigBase obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: cls