Join Slack
Powered by
Hi :wave: There wasn't an answer to this 5 months ...
# serialization
e
Emerson Farrugia
11/17/2020, 10:11 AM
Hi 👋 There wasn't an answer to this 5 months ago, wondering if anything's changed. I'm trying to reuse chunks of related properties in DTOs, but the current API has them all flattened out. 😕
v
Vampire
11/17/2020, 11:11 AM
I guess you either need to use a custom serializer or in case of JSON you can also use the lighter weight JSON transformation:
https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#json-transformations
5
Views
Open in Slack
Previous
Next