class_docstr: DatasourceConfigS3
docstr: Create an instance of DatasourceConfigS3 from a dict
docstr_tok: ["Create","an","instance","of","DatasourceConfigS3","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DatasourceConfigS3:
      """Create an instance of DatasourceConfigS3 from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DatasourceConfigS3.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 DatasourceConfigS3) in the input: "
                  + str(obj)
              )
  
      _obj = DatasourceConfigS3.parse_obj(
          {
              "id": obj.get("id"),
              "purpose": obj.get("purpose"),
              "type": obj.get("type"),
              "thumb_suffix": obj.get("thumbSuffix"),
              "full_path": obj.get("fullPath"),
              "s3_region": obj.get("s3Region"),
              "s3_access_key_id": obj.get("s3AccessKeyId"),
              "s3_secret_access_key": obj.get("s3SecretAccessKey"),
              "s3_server_side_encryption_kms_key": obj.get(
                  "s3ServerSideEncryptionKMSKey"
              ),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_s3.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
  from lightly.openapi_generated.swagger_client.models.s3_region import S3Region
label_desc: Use image node_id 6 for calling the DatasourceConfigS3 obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DatasourceConfigS3