ai.tock.bot.mongo.DialogCol_Deserializer.kt Maven / Gradle / Ivy
package ai.tock.bot.mongo
import ai.tock.bot.engine.dialog.Dialog
import ai.tock.bot.engine.user.PlayerId
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.collections.MutableList
import kotlin.collections.MutableSet
import kotlin.collections.Set
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 DialogCol_Deserializer : JsonDeserializer(), JacksonModuleServiceLoader {
override fun module() = SimpleModule().addDeserializer(DialogCol::class.java, this)
override fun deserialize(p: JsonParser, ctxt: DeserializationContext): DialogCol {
with(p) {
var _playerIds_: MutableSet? = null
var _playerIds_set : Boolean = false
var __id_: Id