class_docstr: DockerRunData
class_docstr_tok: ["DockerRunData"]
docstr: Create an instance of DockerRunData from a dict
docstr_tok: ["Create","an","instance","of","DockerRunData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerRunData:
      """Create an instance of DockerRunData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerRunData.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 DockerRunData) in the input: "
                  + str(obj)
              )
  
      _obj = DockerRunData.parse_obj(
          {
              "id": obj.get("id"),
              "user_id": obj.get("userId"),
              "docker_version": obj.get("dockerVersion"),
              "state": obj.get("state"),
              "archived": obj.get("archived"),
              "dataset_id": obj.get("datasetId"),
              "config_id": obj.get("configId"),
              "scheduled_id": obj.get("scheduledId"),
              "created_at": obj.get("createdAt"),
              "last_modified_at": obj.get("lastModifiedAt"),
              "message": obj.get("message"),
              "artifacts": [
                  DockerRunArtifactData.from_dict(_item)
                  for _item in obj.get("artifacts")
              ]
              if obj.get("artifacts") is not None
              else None,
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_run_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional
  from pydantic import Extra, BaseModel, Field, StrictBool, StrictStr, conint, conlist, constr, validator
  from lightly.openapi_generated.swagger_client.models.docker_run_artifact_data import DockerRunArtifactData
  from lightly.openapi_generated.swagger_client.models.docker_run_state import DockerRunState
label_desc: Use image node_id 9 for calling the DockerRunData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerRunData