Nikky
10/27/2020, 12:03 PMephemient
10/27/2020, 2:18 PM@Serializable
data class FooBar private constructor(
val foo: String,
val bar: String
) {
constructor(
foo: String = "foo",
bar: String = foo.capitalize(),
`$`: Nothing? = null // avoid signature conflict with primary constructor
) : this(foo, bar)
}
louiscad
11/01/2020, 5:38 PMephemient
11/01/2020, 7:04 PM