src/fastapi_aad_auth/utilities/basemodel.py
def validate(cls, value):
        """Validate the class as itself."""
        if isinstance(value, cls):
            return value
        else:
            return cls(**dict_validator(value))
Validate the class as itself.
Validate the class as itself.
Validate the class as itself .
def validate(cls, value):
        if isinstance(value, cls):
            return value
        else:
            return cls(**dict_validator(value))
def validate ( cls , value ) : if isinstance ( value , cls ) : return value else : return cls ( ** dict_validator ( value ) )
Validate the class as itself.
Validate the class as itself .
"""Validate the class as itself."""
cls
value