is the way, right? ``` annotation class CustomAnno...
# announcements
b
is the way, right?
Copy code
annotation class CustomAnnotation<E>(val externalProperty: String, val valuesEnum: KClass<E>) where E: Enum<E>, E: ValueEnum

interface ValueEnum {
    fun getName(): String
    fun getValueClass() : KClass<*>
}

@CustomAnnotation<ProposedSolution.Type>(externalProperty = "type", valuesEnum = ProposedSolution.Type::class)