YearAsIntSerializer

object YearAsIntSerializer : KSerializer<Year> (source)

Serializes a Year to an integer. Example: 2020

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Year
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Year)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor