class_docstr: DatasourceConfigGCS
class_docstr_tok: ["DatasourceConfigGCS"]
docstr: Create an instance of DatasourceConfigGCS from a dict
docstr_tok: ["Create","an","instance","of","DatasourceConfigGCS","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DatasourceConfigGCS:
      """Create an instance of DatasourceConfigGCS from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DatasourceConfigGCS.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 DatasourceConfigGCS) in the input: "
                  + str(obj)
              )
  
      _obj = DatasourceConfigGCS.parse_obj(
          {
              "id": obj.get("id"),
              "purpose": obj.get("purpose"),
              "type": obj.get("type"),
              "thumb_suffix": obj.get("thumbSuffix"),
              "full_path": obj.get("fullPath"),
              "gcs_project_id": obj.get("gcsProjectId"),
              "gcs_credentials": obj.get("gcsCredentials"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_gcs.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from pydantic import Extra, BaseModel, Field, StrictStr, constr
  from lightly.openapi_generated.swagger_client.models.datasource_config_base import DatasourceConfigBase
label_desc: Use image node_id 5 for calling the DatasourceConfigGCS obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DatasourceConfigGCS