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