Similarly to #690, in the types-kotlinx-serialization subproject, we want to introduce the ZeroAsStringSerializerexperimental type for serializing the Zero type as String.
class ZeroAsStringSerializer : KSerializer<Zero> {
override val descriptor: SerializerDescriptor
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
override fun serialize(encoder: Encoder, value: Zero)
override fun deserialize(decoder: Decoder): Zero
override fun toString(): String
}
This serializer should be available for all Kotlin platforms.
â Checklist
[ ] ⨠Add the type and its public constructor with tests, documentation and samples.
[ ] ⨠Override the toString function with tests, documentation and samples.
[ ] ⨠Override structural equality operations (equals and hashCode functions) with tests, documentation and samples.
[ ] ⨠Make the type implementing the KSerializer<Zero> type with tests, documentation and samples.
[ ] đ Update the unreleased changelog for this issue.
đ Description
Similarly to #690, in the
types-kotlinx-serialization
subproject, we want to introduce theZeroAsStringSerializer
experimental type for serializing theZero
type asString
.This serializer should be available for all Kotlin platforms.
â Checklist
toString
function with tests, documentation and samples.equals
andhashCode
functions) with tests, documentation and samples.KSerializer<Zero>
type with tests, documentation and samples.