I already try make generics for it, but adding Imp...
# serialization
m
I already try make generics for it, but adding ImplicitReflectionSerializer annotation for each method looks so bad 😞
d
You could pass in the serializer instead of the kclass.
m
@Dominaezzz I already try pass KSerializer, ContextSerializer but they all need @ImplicitReflectionSerializer annotation
s
KSerializer
does not require it. usually, you want
@ImplicitReflectionSerializer
or
typeof
only on first function, then you could obtain serializer from it and pass it further
m
ahh now I see, I just pass him in wrong way. It works! Thanks! K