I have these two classes. They have identical fiel...
# announcements
p
I have these two classes. They have identical fields with the same types, except that the second class has all of the fields mutable, nullable and initialized to null:
Copy code
data class Dog(
        val age: Int,
        val name: String?,
        val list: List<String>
)
data class DogBuilder(
        var age: Int? = null,
        var name: String? = null,
        var list: List<String>? = null
)
Is there any more concise way to define these? I have a lot of fields so there is a lot of repetition.