ImmutableListSerializer

class ImmutableListSerializer<T>(elementSerializer: KSerializer<T>) : KSerializer<ImmutableList<T>>

Serializes an ImmutableList the same way a plain List would (delegating entirely to ListSerializer), converting back to ImmutableList on decode. Not used directly — reached via the SerializableImmutableList typealias, which is what every schema's own list field (tiles, events, searchableTerms, etc.) actually declares its type as.

Constructors

Link copied to clipboard
constructor(elementSerializer: KSerializer<T>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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