class_docstr: CreateDockerWorkerRegistryEntryRequest
docstr: Create an instance of CreateDockerWorkerRegistryEntryRequest from a dict
docstr_tok: ["Create","an","instance","of","CreateDockerWorkerRegistryEntryRequest","from","a","dict"]
code: def from_dict(
      cls, obj: dict
  ) -> CreateDockerWorkerRegistryEntryRequest:
      """Create an instance of CreateDockerWorkerRegistryEntryRequest from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return CreateDockerWorkerRegistryEntryRequest.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 CreateDockerWorkerRegistryEntryRequest) in the input: "
                  + str(obj)
              )
  
      _obj = CreateDockerWorkerRegistryEntryRequest.parse_obj(
          {
              "name": obj.get("name"),
              "worker_type": obj.get("workerType"),
              "labels": obj.get("labels"),
              "creator": obj.get("creator"),
              "docker_version": obj.get("dockerVersion"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/create_docker_worker_registry_entry_request.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional
  from pydantic import Extra, BaseModel, Field, StrictStr, conlist, constr, validator
  from lightly.openapi_generated.swagger_client.models.creator import Creator
  from lightly.openapi_generated.swagger_client.models.docker_worker_type import DockerWorkerType
label_desc: Use image node_id 6 for calling the CreateDockerWorkerRegistryEntryRequest obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, CreateDockerWorkerRegistryEntryRequest