Kotlin doesn't play nicely with Jackson if the property name contains "is"

Something like this should do the trick, I guess:

class MyResponse(directory: String){
val isDirectory : String
@JvmName(“isDirectory”) get() = field

init {
    isDirectory = directory
}

}