https://kotlinlang.org logo
c

christophsturm

04/30/2020, 1:26 PM
whats the easiest way to call a copy constructor of a data class via reflection?
1
r

rocketraman

04/30/2020, 3:42 PM
I never found a super-simple way to do it, but I've encapsulated all the complexity of it inside this library: https://github.com/rocketraman/kpropmap -- check out the
applyProps
method.
2 Views