io.github.wulkanowy.sdk.scrapper.adapter.ObjectSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-scrapper Show documentation
Show all versions of sdk-scrapper Show documentation
Unified way of retrieving data from the UONET+ register through mobile api and scraping api
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