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

io.github.wulkanowy.sdk.scrapper.adapter.ObjectSerializer.kt Maven / Gradle / Ivy

Go to download

Unified way of retrieving data from the UONET+ register through mobile api and scraping api

There is a newer version: 2.7.0
Show newest version
package io.github.wulkanowy.sdk.scrapper.adapter

import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import kotlinx.serialization.Serializer
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder

@OptIn(ExperimentalSerializationApi::class)
@Serializer(forClass = Object::class)
internal object ObjectSerializer : KSerializer {

    override fun deserialize(decoder: Decoder): Any = Any()

    override fun serialize(encoder: Encoder, value: Any) {
        encoder.encodeInline(AnyObject.serializer().descriptor)
    }

    @Serializable
    private class AnyObject
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy