NepaliDayStatusSerializer

KSerializer for NepaliDayStatus, written as {"isWeeklyOff": false, "events": [...]}.

Only the two facts a policy resolved are stored. isNonWorking, primaryKind and names are derived on the way back out, so a cached status can never disagree with itself. events may be omitted and reads as an empty list, which is what an ordinary working day serializes to.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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