class_docstr: DockerWorkerConfigV2
class_docstr_tok: ["DockerWorkerConfigV2"]
docstr: Create an instance of DockerWorkerConfigV2 from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV2","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerWorkerConfigV2:
      """Create an instance of DockerWorkerConfigV2 from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerWorkerConfigV2.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 DockerWorkerConfigV2) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV2.parse_obj(
          {
              "worker_type": obj.get("workerType"),
              "docker": DockerWorkerConfigV2Docker.from_dict(
                  obj.get("docker")
              )
              if obj.get("docker") is not None
              else None,
              "lightly": DockerWorkerConfigV2Lightly.from_dict(
                  obj.get("lightly")
              )
              if obj.get("lightly") is not None
              else None,
              "selection": SelectionConfig.from_dict(
                  obj.get("selection")
              )
              if obj.get("selection") is not None
              else None,
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v2.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v2_docker import DockerWorkerConfigV2Docker
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v2_lightly import DockerWorkerConfigV2Lightly
  from lightly.openapi_generated.swagger_client.models.docker_worker_type import DockerWorkerType
  from lightly.openapi_generated.swagger_client.models.selection_config import SelectionConfig
label_desc: Use image node_id 5 for calling the DockerWorkerConfigV2 obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV2