umitems
01/17/2022, 12:43 AMJoffrey
01/17/2022, 12:45 AMtoString()
is not meant for serialization, it is meant to help for printing/debugging/logging etc. If you want to serialize/deserialize, you should probably use more suited formatsumitems
01/17/2022, 12:47 AMephemient
01/17/2022, 1:08 AMtoString()
cannot be inverted. for example,
data class X(val a: String, val b: String)
val x1 = X(a = "a, b=b", b = "b")
val x2 = X(a = "a", b = "b, b=b")
x1 != x2
x1.toString() == x2.toString()
umitems
01/17/2022, 4:39 AMRein T
01/17/2022, 7:57 AM