DateTimePeriodComponentSerializer

A serializer for DateTimePeriod that uses a different field for each component, only listing non-zero components.

JSON example: {"days":1,"hours":-1}

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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