InstantComponentSerializer

object InstantComponentSerializer : KSerializer<Instant> (source)

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

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

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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