andyg
10/22/2020, 9:19 AMsuper
to leverage. Thank you.Marc Knaup
10/22/2020, 11:09 AMerror("This type cannot be deserialized.")
in the deserialization function.russhwolf
10/22/2020, 1:05 PMSerializationStrategy
instead of KSerializer
if you just want to go one-way. Depending on which APIs you interact with that might be limiting, but I think they've tried to make stuff flexible enough to support that use-case.
For falling back to the built-in, have you tried delegating to YourClass.serializer().deserialize(...)
?andyg
10/22/2020, 10:33 PMSerializationStrategy
was ultimately needed, because I'm serializing a class not a primitive. Also, yes YourClass.serializer().deserialize(...)
appears to work, I had been expecting something like super.deserialize()
because this is an override
method. Really appreciate it!