SnapshotStateSetSerializer


A KSerializer for SnapshotStateSet.

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

Parameters
<T : Any?>

The type of elements stored in the SnapshotStateSet.

Summary

Public constructors

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

Public functions

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

Public properties

open SerialDescriptor
Cmn

Public constructors

SnapshotStateSetSerializer

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

The type of elements stored in the SnapshotStateSet.

elementSerializer: KSerializer<T>

The KSerializer used to serialize and deserialize individual elements.

Public functions

deserialize

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

serialize

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

Public properties

descriptor

open val descriptorSerialDescriptor