DateTimePeriodComponentSerializer

object DateTimePeriodComponentSerializer : KSerializer<DateTimePeriod>

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

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

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor