Similarly to #690, in the types-kotlinx-serialization subproject, we want to introduce the ZeroAsDoubleSerializerexperimental type for serializing the Zero type as Double.
class ZeroAsDoubleSerializer : 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 theZeroAsDoubleSerializer
experimental type for serializing theZero
type asDouble
.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.