kotlin modify property of object code example
Example: PropertyCopy from one object to another in kotlin
data class Record(val name: String, ...)
...
header2 = header1.copy(name = " new_name)
data class Record(val name: String, ...)
...
header2 = header1.copy(name = " new_name)