ObjectEnumSerializer

Custom serializer for object enum fields that ensures all values are JsonObject during deserialization.

During deserialization:

  • JsonObject values → preserved as-is

  • Other types → error

During serialization, converts List back to JsonArray.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): List<JsonObject>?
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: List<JsonObject>?)