class_docstr: DatasourceRawSamplesMetadataData
class_docstr_tok: ["DatasourceRawSamplesMetadataData"]
docstr: Create an instance of DatasourceRawSamplesMetadataData from a dict
docstr_tok: ["Create","an","instance","of","DatasourceRawSamplesMetadataData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DatasourceRawSamplesMetadataData:
      """Create an instance of DatasourceRawSamplesMetadataData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DatasourceRawSamplesMetadataData.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 DatasourceRawSamplesMetadataData) in the input: "
                  + str(obj)
              )
  
      _obj = DatasourceRawSamplesMetadataData.parse_obj(
          {
              "has_more": obj.get("hasMore"),
              "cursor": obj.get("cursor"),
              "data": [
                  DatasourceRawSamplesMetadataDataRow.from_dict(_item)
                  for _item in obj.get("data")
              ]
              if obj.get("data") is not None
              else None,
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_raw_samples_metadata_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List
  from pydantic import Extra, BaseModel, Field, StrictBool, StrictStr, conlist
  from lightly.openapi_generated.swagger_client.models.datasource_raw_samples_metadata_data_row import DatasourceRawSamplesMetadataDataRow
label_desc: Use image node_id 5 for calling the DatasourceRawSamplesMetadataData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DatasourceRawSamplesMetadataData