class_docstr: ActiveLearningScoreV2Data
class_docstr_tok: ["ActiveLearningScoreV2Data"]
docstr: Create an instance of ActiveLearningScoreV2Data from a dict
docstr_tok: ["Create","an","instance","of","ActiveLearningScoreV2Data","from","a","dict"]
code: def from_dict(cls, obj: dict) -> ActiveLearningScoreV2Data:
      """Create an instance of ActiveLearningScoreV2Data from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return ActiveLearningScoreV2Data.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 ActiveLearningScoreV2Data) in the input: "
                  + str(obj)
              )
  
      _obj = ActiveLearningScoreV2Data.parse_obj(
          {
              "id": obj.get("id"),
              "dataset_id": obj.get("datasetId"),
              "prediction_uuid_timestamp": obj.get(
                  "predictionUUIDTimestamp"
              ),
              "task_name": obj.get("taskName"),
              "score_type": obj.get("scoreType"),
              "scores": obj.get("scores"),
              "created_at": obj.get("createdAt"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/active_learning_score_v2_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Union
  from pydantic import Extra, BaseModel, Field, StrictFloat, StrictInt, conint, conlist, constr, validator
label_desc: Use image node_id 9 for calling the ActiveLearningScoreV2Data obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, ActiveLearningScoreV2Data