When I'm using the kotlinx-serialization method `S...
# multiplatform
a
When I'm using the kotlinx-serialization method
SerialDescriptor.annotations
and trying to find out whether a particular annotation exists on a field I can't do
SerialDescriptor.annotations.find { it.<???> }
because
it
is a
kotlin.Annotation
instance that has no fields or methods. On the JVM I could just do
it.annotationClass
and it would give me a KClass instance whose full-path I could check. How do I do the same thing in KMP?
e
just do an
is
check?
a
Wow! That actually worked
Thanks!