i would infer you need a no-arg constructor on the...
# spring
n
i would infer you need a no-arg constructor on the deserialized object class 😉 either use the library proposed by @fitzoh :
With this module, single constructor classes can be used automatically, and those with secondary constructors or static factories are also supported.
or use the no-arg compiler plugin: https://kotlinlang.org/docs/reference/compiler-plugins.html#no-arg-compiler-plugin