InstantComponentSerializer

object InstantComponentSerializer : KSerializer<Instant>

A serializer for Instant that represents an Instant value as second and nanosecond components of the Unix time.

JSON example: {"epochSeconds":1607505416,"nanosecondsOfSecond":124000}

Functions

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor