In Kotlin if you have default values for all params in the constructor then it generates a default constructor. If not, it doesn't, which is ok for your code since it makes "required" fields, but bad for Jackson unless you use jackson-module-kotlin.
Register the KotlinModule() when it is on the classpath so that Jackson can handle these objects.
In Kotlin if you have default values for all params in the constructor then it generates a default constructor. If not, it doesn't, which is ok for your code since it makes "required" fields, but bad for Jackson unless you use jackson-module-kotlin.
Register the KotlinModule() when it is on the classpath so that Jackson can handle these objects.