src/fastapi_aad_auth/utilities/basemodel.py
def dict(self,
             *,
             include=None,
             exclude=None,
             by_alias: bool = False,
             skip_defaults: bool = None,
             exclude_unset: bool = False,
             exclude_defaults: bool = False,
             exclude_none: bool = False,):
        """Return the object as a dictionary."""
        attribs = super().dict(  # type: ignore
            include=include,
            exclude=exclude,
            by_alias=by_alias,
            skip_defaults=skip_defaults,
            exclude_unset=exclude_unset,
            exclude_defaults=exclude_defaults,
            exclude_none=exclude_none
        )
        props = self.get_properties()
        # Include and exclude properties
        if include:
            props = [prop for prop in props if prop in include]
        if exclude:
            props = [prop for prop in props if prop not in exclude]

        # Update the attribute dict with the properties
        if props:
            attribs.update({prop: getattr(self, prop) for prop in props})

        return attribs
Return the object as a dictionary.
Return the object as a dictionary.
Return the object as a dictionary .
def dict(self,
             *,
             include=None,
             exclude=None,
             by_alias: bool = False,
             skip_defaults: bool = None,
             exclude_unset: bool = False,
             exclude_defaults: bool = False,
             exclude_none: bool = False,):
        attribs = super().dict(  
            include=include,
            exclude=exclude,
            by_alias=by_alias,
            skip_defaults=skip_defaults,
            exclude_unset=exclude_unset,
            exclude_defaults=exclude_defaults,
            exclude_none=exclude_none
        )
        props = self.get_properties()
        if include:
            props = [prop for prop in props if prop in include]
        if exclude:
            props = [prop for prop in props if prop not in exclude]
        if props:
            attribs.update({prop: getattr(self, prop) for prop in props})
        return attribs
def dict ( self , * , include = None , exclude = None , by_alias : bool = False , skip_defaults : bool = None , exclude_unset : bool = False , exclude_defaults : bool = False , exclude_none : bool = False , ) : attribs = super ( ) . dict ( include = include , exclude = exclude , by_alias = by_alias , skip_defaults = skip_defaults , exclude_unset = exclude_unset , exclude_defaults = exclude_defaults , exclude_none = exclude_none ) props = self . get_properties ( ) if include : props = [ prop for prop in props if prop in include ] if exclude : props = [ prop for prop in props if prop not in exclude ] if props : attribs . update ( { prop : getattr ( self , prop ) for prop in props } ) return attribs
Return the object as a dictionary.
Return the object as a dictionary .
"""Return the object as a dictionary.""" # type: ignore # Include and exclude properties # Update the attribute dict with the properties
self
include
exclude
by_alias
bool
skip_defaults
bool
exclude_unset
bool
exclude_defaults
bool
exclude_none
bool