MapAsListSerializer

Abstract serializer that converts Map to and from a list representation.

This serializer is useful when you need to serialize maps as arrays of objects rather than as key-value pairs, which is common in JSON APIs where maps are represented as arrays of objects with explicit key and value properties.

Parameters

Delegate

The type that represents a single map entry in the serialized format

Key

The type of keys in the map

Value

The type of values in the map

delegateSerializer

The serializer for the delegate entry type

Inheritors

Constructors

Link copied to clipboard
constructor(delegateSerializer: KSerializer<Delegate>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Map<Key, Value>
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Map<Key, Value>)