Yeah, that's the ideal scenario. I guess if the or...
# serialization
p
Yeah, that's the ideal scenario. I guess if the order is reversed it's the incorrect format 🙃
n
Copy code
override fun deserialize(input: Decoder): LockEntry {
            val structDecoder = input.beginStructure(descriptor)
            val first = structDecoder.decodeStringElement(descriptor, 0) // index 0 => first element in the class
            val data = structDecoder.decodeSerializableElement(descriptor, 1, SomeClass::class.serializer().list)
            structDecoder.endStructure()
        }
thats how this would look like in 0.8.2+
in 0.6.2 replace descriptor with serialClassDesc and the alls are named different but the structure is generally the same
p
Ok, I may update to the latest