is there a method that converts a data class to a ...
# announcements
c
is there a method that converts a data class to a map? or iterates over all its fields?
k
You're going to need reflection for that.
c
yes, i was just wondering if there is a method for that already
k
Looks like the Jackson object mapper can do it: https://stackoverflow.com/a/50354581
c
yes but that’s a huge dependency
h
Could be a nice extension to kotlinx.serialization, maybe?