class_docstr: SelectionConfigEntryStrategy
class_docstr_tok: ["SelectionConfigEntryStrategy"]
docstr: Create an instance of SelectionConfigEntryStrategy from a dict
docstr_tok: ["Create","an","instance","of","SelectionConfigEntryStrategy","from","a","dict"]
code: def from_dict(cls, obj: dict) -> SelectionConfigEntryStrategy:
      """Create an instance of SelectionConfigEntryStrategy from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return SelectionConfigEntryStrategy.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 SelectionConfigEntryStrategy) in the input: "
                  + str(obj)
              )
  
      _obj = SelectionConfigEntryStrategy.parse_obj(
          {
              "type": obj.get("type"),
              "stopping_condition_minimum_distance": obj.get(
                  "stopping_condition_minimum_distance"
              ),
              "threshold": obj.get("threshold"),
              "operation": obj.get("operation"),
              "target": obj.get("target"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/selection_config_entry_strategy.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Any, Dict, Optional, Union
  from pydantic import Extra, BaseModel, Field, StrictFloat, StrictInt
  from lightly.openapi_generated.swagger_client.models.selection_strategy_threshold_operation import SelectionStrategyThresholdOperation
  from lightly.openapi_generated.swagger_client.models.selection_strategy_type import SelectionStrategyType
label_desc: Use image node_id 5 for calling the SelectionConfigEntryStrategy obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, SelectionConfigEntryStrategy