Introduction to Adaptix Conversion
mainAdaptix is designed to automate the generation of converter functions between different data models (e.g., transforming a Domain Model into a DTO). This avoids writing boilerplate code when passing data between application layers.
Core Mechanics:
- Adaptix scans each field of the destination model and attempts to match it with a field in the source model.
- By default, matching is based on exact name equivalence.
- It supports nested models automatically.
- Converter signatures are automatically derived by IDEs and type checkers.
# Example of a generated converter
def convert_book_to_dto(book: Book) -> BookDTO:
...