DateBasedDateTimeUnitSerializer

object DateBasedDateTimeUnitSerializer : AbstractPolymorphicSerializer<DateTimeUnit.DateBased>

A polymorphic serializer for DateTimeUnit.DateBased unit that represents the unit as an Int number of months or days.

JSON example: {"type":"DayBased","days":15}

Functions

Link copied to clipboard
override fun deserialize(decoder: Decoder): DateTimeUnit.DateBased
Link copied to clipboard
open override fun findPolymorphicSerializerOrNull(decoder: CompositeDecoder, klassName: String?): DeserializationStrategy<out DateTimeUnit.DateBased>?
open override fun findPolymorphicSerializerOrNull(encoder: Encoder, value: DateTimeUnit.DateBased): SerializationStrategy<DateTimeUnit.DateBased>?
Link copied to clipboard
override fun serialize(encoder: Encoder, value: DateTimeUnit.DateBased)

Properties

Link copied to clipboard
open override val baseClass: KClass<DateTimeUnit.DateBased>
Link copied to clipboard
open override val descriptor: SerialDescriptor