class_docstr: DockerWorkerConfigV3DockerDatasource
class_docstr_tok: ["DockerWorkerConfigV3DockerDatasource"]
docstr: Create an instance of DockerWorkerConfigV3DockerDatasource from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV3DockerDatasource","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerWorkerConfigV3DockerDatasource:
      """Create an instance of DockerWorkerConfigV3DockerDatasource from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerWorkerConfigV3DockerDatasource.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 DockerWorkerConfigV3DockerDatasource) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV3DockerDatasource.parse_obj(
          {
              "bypass_verify": obj.get("bypassVerify"),
              "enable_datapool_update": obj.get("enableDatapoolUpdate"),
              "process_all": obj.get("processAll"),
              "input_expiration": DockerWorkerConfigV3DatasourceInputExpiration.from_dict(
                  obj.get("inputExpiration")
              )
              if obj.get("inputExpiration") is not None
              else None,
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_docker_datasource.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictBool
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_datasource_input_expiration import DockerWorkerConfigV3DatasourceInputExpiration
label_desc: Use image node_id 5 for calling the DockerWorkerConfigV3DockerDatasource obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV3DockerDatasource