ai.tock.bot.mongo.DialogTextCol_Deserializer.kt Maven / Gradle / Ivy
package ai.tock.bot.mongo
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 java.time.Instant
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 DialogTextCol_Deserializer : JsonDeserializer(),
JacksonModuleServiceLoader {
override fun module() = SimpleModule().addDeserializer(DialogTextCol::class.java, this)
override fun deserialize(p: JsonParser, ctxt: DeserializationContext): DialogTextCol {
with(p) {
var _text_: String? = null
var _text_set : Boolean = false
var _dialogId_: Id