rawtoast
02/26/2018, 5:08 PMsealed class ExampleClass {
data class ExampleFirst(val id: Int, val name: String)
data class ExampleAlternative(val other: String)
}
Jackson returns a InvalidDefinitionException
and mentions that it cannot constrict an ExampleClass
as no Creators exist. I imagine there is a simple annotation to get around this, but my googlefoo is failing me.