MonthBasedDateTimeUnitSerializer

object MonthBasedDateTimeUnitSerializer : KSerializer<DateTimeUnit.MonthBased>

A serializer for DateTimeUnit.MonthBased unit that represents the unit as an Int number of months.

JSON example: {"months":2}

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor