<How to use BeanUtils.copyProperties on data class...
# stackoverflow
u
How to use BeanUtils.copyProperties on data classes? I recently discovered the method copyProperties from BeanUBeanUtilstils class and I was wondering how can I copy the properties of a class into a new empty class? for example: data class User(val name: String, age: Int) data class ConvertedUser(val name: String, age: Int, address: String) I already have a class User with the properties filled and I want to create a new class ConvertedUser using the copyProperties but I can't instantiate a new ConvertedUser without passing the parameters to...