Similarly to #690, in the types-kotlinx-serialization subproject, we want to introduce the ZeroAsShortSerializerexperimental type for serializing the Zero type as Short.
class ZeroAsShortSerializer : 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 theZeroAsShortSerializer
experimental type for serializing theZero
type asShort
.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.