CalendarSystemSerializer

KSerializer for CalendarSystem, written as its era number (1 = Gregorian, 2 = Bikram Sambat).

The era is the form CustomCalendarSerializer already writes, so a persisted calendar system and a persisted calendar agree on what "1" means. It is also stable against reordering the enum, which the name and the ordinal are not.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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