class_docstr: DatasourceConfigLOCAL
class_docstr_tok: ["DatasourceConfigLOCAL"]
docstr: Create an instance of DatasourceConfigLOCAL from a dict
docstr_tok: ["Create","an","instance","of","DatasourceConfigLOCAL","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DatasourceConfigLOCAL:
      """Create an instance of DatasourceConfigLOCAL from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DatasourceConfigLOCAL.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in DatasourceConfigLOCAL) in the input: "
                  + str(obj)
              )
  
      _obj = DatasourceConfigLOCAL.parse_obj(
          {
              "id": obj.get("id"),
              "purpose": obj.get("purpose"),
              "type": obj.get("type"),
              "thumb_suffix": obj.get("thumbSuffix"),
              "full_path": obj.get("fullPath"),
              "web_server_location": obj.get("webServerLocation"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_local.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictStr, constr, validator
  from lightly.openapi_generated.swagger_client.models.datasource_config_base import DatasourceConfigBase
label_desc: Use image node_id 6 for calling the DatasourceConfigLOCAL obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DatasourceConfigLOCAL