commonMain.kotlinx.serialization.builtins.BuiltinsMigrations.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-serialization-runtime Show documentation
Show all versions of kotlinx-serialization-runtime Show documentation
Kotlin multiplatform serialization runtime library
The newest version!
/*
* Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.serialization.builtins
import kotlinx.serialization.*
import kotlinx.serialization.internal.*
@Deprecated(
message = "Deprecated in the favour of Unit.serializer() extension",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith("Unit.serializer()", imports = ["kotlinx.serialization.builtins.serializer"])
)
public fun UnitSerializer(): KSerializer = Unit.serializer()
@Deprecated(
message = "Deprecated during serialization 1.0 API stabilization",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith("ListSerializer(this)")
)
public val KSerializer.list: KSerializer>
get() = ListSerializer(this)
@Deprecated(
message = "Deprecated during serialization 1.0 API stabilization",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith("SetSerializer(this)")
)
public val KSerializer.set: KSerializer>
get() = SetSerializer(this)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy