PropertyCopy from one object to another in kotlin
snippet in kotlin

PropertyCopy from one object to another in kotlin

user2463

data class Record(val name: String, ...)
...
header2 = header1.copy(name = " new_name)