com.yandex.div.dsl.serializer.BoolIntSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
package com.yandex.div.dsl.serializer
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import com.yandex.div.dsl.type.BoolInt
class BoolIntSerializer : StdSerializer(BoolInt::class.java) {
override fun serialize(value: BoolInt, generator: JsonGenerator, provider: SerializerProvider) {
generator.writeNumber(value.intValue)
}
}