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