alightgoesout
02/09/2022, 1:00 PMId<T>
where T
is not actually used for serialization/deserialization. I have written a custom serializer for it that I have declared on the class (@Serializable(with = IdSerializer::class) Id<T> {…}
). The custom serializer is declared as KSerializer<Id<*>>
and it does not take any parameter.
So far it works well, except that if I used it with a parameter that is not serializable (e.g., Id<User>
), the compiler complains and I have to add a @Contextual
annotation to the parameter.
Is there a way to specify that the parameter is ignored? (for instance, using an annotation)Dominaezzz
02/09/2022, 6:33 PMalightgoesout
02/10/2022, 9:51 AM