class_docstr: Implements default functions, all pydantic objects should have.
class_docstr_tok: ["Implements","default","functions",",","all","pydantic","objects","should","have","."]
code: def json(self, **kwargs):
      try:
          return self.model_dump()  # noqa
      except:
          # if using pydantic v1
          return self.dict()
  
file_path: litellm/litellm/router_strategy/lowest_latency.py
imports: from pydantic import BaseModel, Extra, Field, root_validator
  import dotenv, os, requests, random
  from typing import Optional, Union, List, Dict
  from datetime import datetime, timedelta
  import traceback
  from litellm.caching import DualCache
  from litellm.integrations.custom_logger import CustomLogger
  from litellm import ModelResponse
  from litellm import token_counter
label_desc: Use image node_id 1 for calling the LiteLLMBase obj's underlying member method code with example usage: obj.json() and returns: self, self