Open mrverdant13 opened 3 years ago
Hey @mrverdant13 I like the idea, I'm thinking of maybe making this configurable. So that you would be able to write something like
@Mapper(extension: true)
...
And instead of implementing the mapper class, it would generate extension methods like you suggested.
I don't know how much time I'll have in the weeks, but I'll see what I can do. Or if you feel like it, feel free to open a PR
Definitely gonna check this out and try to post a PR.
BTW, thanks for the package! I was about to create one with just similar capabilities! 👀
Description
Given the following classes:
And given the following mapper interface:
Instead of generating a mapper class, it would be great to generate mapper extension methods as follows: