Victor Ermolaev
02/19/2021, 10:44 AMclass User(val id: PublicKey)
but it does fail with generics class<T> User(val id: T)
. I get Class 'RSAPublicKeyImpl' is not registered for polymorphic serialization in the scope of 'PublicKey'.
when I insert a public key instance there.
My minimally working example is here https://github.com/vnermolaev/serde Does anyone have experience with kotlinx.serialization and applying it together with generics?Joost Klitsie
02/19/2021, 11:46 AMVictor Ermolaev
02/19/2021, 11:54 AM