class_docstr: DockerWorkerConfigV2DockerObjectLevel
class_docstr_tok: ["DockerWorkerConfigV2DockerObjectLevel"]
docstr: Create an instance of DockerWorkerConfigV2DockerObjectLevel from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV2DockerObjectLevel","from","a","dict"]
code: def from_dict(
      cls, obj: dict
  ) -> DockerWorkerConfigV2DockerObjectLevel:
      """Create an instance of DockerWorkerConfigV2DockerObjectLevel from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerWorkerConfigV2DockerObjectLevel.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 DockerWorkerConfigV2DockerObjectLevel) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV2DockerObjectLevel.parse_obj(
          {
              "crop_dataset_name": obj.get("cropDatasetName"),
              "padding": obj.get("padding"),
              "task_name": obj.get("taskName"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v2_docker_object_level.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional, Union
  from pydantic import Extra, BaseModel, Field, StrictFloat, StrictInt, constr, validator
label_desc: Use image node_id 7 for calling the DockerWorkerConfigV2DockerObjectLevel obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV2DockerObjectLevel