LocalDateTimeSerializer

class LocalDateTimeSerializer : KSerializer<LocalDateTime>

A serializer for an instance of LocalDateTime. The instance will be serialized by converting it to its corresponding milliseconds value. It will be deserialized by converting the milliseconds value into a LocalDateTime object.

Constructors

Link copied to clipboard
fun LocalDateTimeSerializer()

Functions

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

Properties

Link copied to clipboard
abstract override val descriptor: SerialDescriptor