Date Time Unit Serializer
object DateTimeUnitSerializer : AbstractPolymorphicSerializer<DateTimeUnit>
Content copied to clipboard
A polymorphic serializer for DateTimeUnit that represents the unit as the Int number of months or days, or the Long number of nanoseconds.
JSON example: {"type":"MonthBased","days":15}
Functions
Link copied to clipboard
Link copied to clipboard
open override fun findPolymorphicSerializerOrNull(decoder: CompositeDecoder, klassName: String?): DeserializationStrategy<out DateTimeUnit>?
Content copied to clipboard
open override fun findPolymorphicSerializerOrNull(encoder: Encoder, value: DateTimeUnit): SerializationStrategy<DateTimeUnit>?
Content copied to clipboard
Link copied to clipboard