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