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()
  
imports: from pydantic import BaseModel, Extra, Field, root_validator
  import enum
  from typing import Optional, List, Union, Dict, Literal
  from datetime import datetime
  import uuid, json
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