All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.serializer.BoolIntSerializer.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 30.19.0
Show newest version
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)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy