class_docstr: SampleDataModes
class_docstr_tok: ["SampleDataModes"]
docstr: Create an instance of SampleDataModes from a JSON string
docstr_tok: ["Create","an","instance","of","SampleDataModes","from","a","JSON","string"]
code: def from_json(cls, json_str: str) -> SampleDataModes:
      """Create an instance of SampleDataModes from a JSON string"""
      return cls.from_dict(json.loads(json_str))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/sample_data_modes.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Any, Dict, Optional
  from pydantic import Extra, BaseModel, Field, StrictInt, StrictStr, conint, constr, validator
  from lightly.openapi_generated.swagger_client.models.crop_data import CropData
  from lightly.openapi_generated.swagger_client.models.sample_meta_data import SampleMetaData
  from lightly.openapi_generated.swagger_client.models.sample_type import SampleType
  from lightly.openapi_generated.swagger_client.models.video_frame_data import VideoFrameData
label_desc: Use image node_id 5 for calling the SampleDataModes obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: cls