functions
- automapper.functions.get_fields_type(target_class: Type) Dict[str, Type]
Return the fields of a class with their types
- Args:
target_class (Type): _description_
- Returns:
Dict[str, Type]: _description_
- automapper.functions.get_inner_type(type_hint: Type) Type
Get the inner type of a generic type
- Args:
type_hint (Type): _description_
- Returns:
Type: _description_
- automapper.functions.is_generic_dict(type_hint: Type) bool
Check if the type hint is a generic dict
- Args:
type_hint (Type): _description_
- Returns:
bool: _description_
- automapper.functions.is_generic_list(type_hint: Type) bool
Check if the type hint is a generic list
- Args:
type_hint (Type): _description_
- Returns:
bool: _description_
- automapper.functions.is_pydantic(obj)
Returns True if obj is a pydantic model or an instance of a pydantic model.
- automapper.functions.is_sqlalchemy(obj)
Returns True if obj is a sqlalchemy model or an instance of a sqlalchemy model.