zero
Returns the module for serializing the Zero type.
Here's an example of calling this property from Kotlin code:
val format = Json { serializersModule = KotoolsTypesSerializers.zero }
val zero = Zero()
val encoded: String = format.encodeToString(zero)
println(encoded) // 0
val decoded: Zero = format.decodeFromString(encoded)
println(zero == decoded) // true
Content copied to clipboard