DayBasedDateTimeUnitSerializer

object DayBasedDateTimeUnitSerializer : KSerializer<DateTimeUnit.DayBased>

A serializer for DateTimeUnit.DayBased unit that represents the unit as an Int number of days.

JSON example: {"days":2}

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor