-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: type mapping #1
Comments
Thanks for your interest @rocketraman ! That is a very cool idea. I haven't thought about it yet tbh. But I can definitely see the use case for it. What would be a convenient way for you to define such a function when you think about Kotlin projects you are working on? I could think of some kind of adapter like we know from serialization libraries like Gson, Jackson etc, where we provide such a function to e.g. convert |
+1 for this feature. Sometimes our classes have inner data classes that need to mapped as well. you can add its own KconMapper for the type but TestRepo is unable to map that type
|
Some prior art in java land might be worth reviewing. Maybe Kotlin can do better. :) |
Looks interesting and a great start.
Often times domain objects at different layers of an application have different types. For example, an internal domain object might use a different id type than an API or database model type.
Are you planning to provide any capability to map these types by allowing users to inject functions to do type mapping?
The text was updated successfully, but these errors were encountered: