class_docstr: SampleUpdateRequest
class_docstr_tok: ["SampleUpdateRequest"]
docstr: Create an instance of SampleUpdateRequest from a dict
docstr_tok: ["Create","an","instance","of","SampleUpdateRequest","from","a","dict"]
code: def from_dict(cls, obj: dict) -> SampleUpdateRequest:
      """Create an instance of SampleUpdateRequest from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return SampleUpdateRequest.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 SampleUpdateRequest) in the input: "
                  + str(obj)
              )
  
      _obj = SampleUpdateRequest.parse_obj(
          {
              "file_name": obj.get("fileName"),
              "thumb_name": obj.get("thumbName"),
              "exif": obj.get("exif"),
              "meta_data": SampleMetaData.from_dict(obj.get("metaData"))
              if obj.get("metaData") is not None
              else None,
              "custom_meta_data": obj.get("customMetaData"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/sample_update_request.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Any, Dict, Optional
  from pydantic import Extra, BaseModel, Field, StrictStr
  from lightly.openapi_generated.swagger_client.models.sample_meta_data import SampleMetaData
label_desc: Use image node_id 5 for calling the SampleUpdateRequest obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, SampleUpdateRequest