<Kotlinx.serialization - serialize/apply only chan...
# forum
r
Kotlinx.serialization - serialize/apply only changes Is there a way to serialize only the changes made on an instance and then apply the changes on another instance, assuming the starting point of the two instances are the same? Something like this: class Data(var value : Int) val dataA = Data(1) val dataB = Data(1) dataA.value = 12 // here patch should be something I can send over the network, save to file, etc. val patch = dataA.getPatch() dataB.patch(patch) assertEquals(12, dataB.value) 1 post - 1 participant <a...