SnapshotStateListSerializer


A KSerializer for SnapshotStateList.

This serializer wraps a KSerializer for the element type T, enabling serialization and deserialization of SnapshotStateList instances. The serialization of individual elements is delegated to the provided elementSerializer.

Parameters
<T : Any?>

The type of elements stored in the SnapshotStateList.

Summary

Public constructors

<T : Any?> SnapshotStateListSerializer(elementSerializer: KSerializer<T>)
Cmn

Public functions

open SnapshotStateList<T>
deserialize(decoder: Decoder)
Cmn
open Unit
serialize(encoder: Encoder, value: SnapshotStateList<T>)
Cmn

Public properties

open SerialDescriptor
Cmn

Public constructors

SnapshotStateListSerializer

<T : Any?> SnapshotStateListSerializer(elementSerializer: KSerializer<T>)
Parameters
<T : Any?>

The type of elements stored in the SnapshotStateList.

elementSerializer: KSerializer<T>

The KSerializer used to serialize and deserialize individual elements.

Public functions

deserialize

open fun deserialize(decoder: Decoder): SnapshotStateList<T>

serialize

open fun serialize(encoder: Encoder, value: SnapshotStateList<T>): Unit

Public properties

descriptor

open val descriptorSerialDescriptor