class_docstr: PredictionSingletonObjectDetection
class_docstr_tok: ["PredictionSingletonObjectDetection"]
docstr: Create an instance of PredictionSingletonObjectDetection from a dict
docstr_tok: ["Create","an","instance","of","PredictionSingletonObjectDetection","from","a","dict"]
code: def from_dict(cls, obj: dict) -> PredictionSingletonObjectDetection:
      """Create an instance of PredictionSingletonObjectDetection from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return PredictionSingletonObjectDetection.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 PredictionSingletonObjectDetection) in the input: "
                  + str(obj)
              )
  
      _obj = PredictionSingletonObjectDetection.parse_obj(
          {
              "type": obj.get("type"),
              "task_name": obj.get("taskName"),
              "crop_dataset_id": obj.get("cropDatasetId"),
              "crop_sample_id": obj.get("cropSampleId"),
              "category_id": obj.get("categoryId"),
              "score": obj.get("score"),
              "bbox": obj.get("bbox"),
              "probabilities": obj.get("probabilities"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/prediction_singleton_object_detection.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional, Union
  from pydantic import Extra, BaseModel, Field, confloat, conint, conlist
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_base import PredictionSingletonBase
label_desc: Use image node_id 5 for calling the PredictionSingletonObjectDetection obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, PredictionSingletonObjectDetection