SnapshotStateMapSerializer


A KSerializer for SnapshotStateMap.

This serializer wraps KSerializer instances for the key type K and value type V, enabling serialization and deserialization of SnapshotStateMap instances. The serialization of individual keys and values is delegated to the provided keySerializer and valueSerializer.

Parameters
Any?>

The type of keys stored in the SnapshotStateMap.

Any?>

The type of values stored in the SnapshotStateMap.

Summary

Public constructors

Any?, V : Any?> SnapshotStateMapSerializer(
    keySerializer: ,
    valueSerializer: 
)
Cmn

Public functions

open SnapshotStateMap
deserialize(decoder: )
Cmn
open Unit
serialize(
    encoder: ,
    value: SnapshotStateMap
)
Cmn

Public properties

open
Cmn

Public constructors

SnapshotStateMapSerializer

Any?, V : Any?> SnapshotStateMapSerializer(
    keySerializer: ,
    valueSerializer: 
)
Parameters
Any?>

The type of keys stored in the SnapshotStateMap.

Any?>

The type of values stored in the SnapshotStateMap.

keySerializer: 

The KSerializer used to serialize and deserialize individual keys.

valueSerializer: 

The KSerializer used to serialize and deserialize individual values.

Public functions

deserialize

open fun deserialize(decoder: ): SnapshotStateMap

serialize

open fun serialize(
    encoder: ,
    value: SnapshotStateMap
): Unit

Public properties

descriptor

open val descriptor