ai.tock.bot.mongo.NlpStatsColId_Deserializer.kt Maven / Gradle / Ivy
package ai.tock.bot.mongo
import ai.tock.bot.engine.action.Action
import ai.tock.bot.engine.dialog.Dialog
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonToken
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JsonDeserializer
import com.fasterxml.jackson.databind.module.SimpleModule
import kotlin.String
import kotlin.collections.Map
import kotlin.reflect.KFunction
import kotlin.reflect.KParameter
import kotlin.reflect.full.findParameterByName
import kotlin.reflect.full.primaryConstructor
import org.litote.jackson.JacksonModuleServiceLoader
import org.litote.kmongo.Id
internal class NlpStatsColId_Deserializer : JsonDeserializer(),
JacksonModuleServiceLoader {
override fun module() = SimpleModule().addDeserializer(NlpStatsColId::class.java, this)
override fun deserialize(p: JsonParser, ctxt: DeserializationContext): NlpStatsColId {
with(p) {
var _actionId_: Id? = null
var _actionId_set : Boolean = false
var _dialogId_: Id