Is it possible to go get inner types with `Content...
# ktor
j
Is it possible to go get inner types with
ContentNegotiation
before passing it to
Kotlin Serialization
? In
commonMain
probably with reflection can be done but I am not finding a way to transform from
Type
,
KType
or
KClass
to to an inner type in KMP (KTOR 2.0.0)
a
What do you mean by inner types?
j
I am wrapping the response in a custom sealed class similar to EitherNet from Slack, so serialization can't serialize it which is normal, serialization only should try to serialize based on the internal types
that sealed class has generic types