TimeBasedDateTimeUnitSerializer

object TimeBasedDateTimeUnitSerializer : KSerializer<DateTimeUnit.TimeBased>

A serializer for DateTimeUnit.TimeBased unit that represents the unit as a Long number of nanoseconds.

JSON example: {"nanoseconds":1000000000}

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor