MapAsListSerializer
abstract class MapAsListSerializer<Delegate : Map.Entry<Key, Value>, Key, Value>(delegateSerializer: KSerializer<Delegate>) : KSerializer<Map<Key, Value>> (source)
Abstract serializer that converts Map
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