NepaliEventKindSerializer

KSerializer for NepaliEventKind, written as its name, for example "GovernmentPublic".

The name rather than the ordinal, so adding a kind later cannot silently rewrite what an already stored file means. A name the library does not know fails with a SerializationException rather than falling back to a kind, since guessing would decide whether a day closes an office.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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