ProviderRegistrySerializer

A KSerializer for ProviderRegistry that can serialize and deserialize provider registry contents.

This serializer works with RegistrySerializableKey instances to properly serialize provider registry values using their associated serializers.

Parameters

serializableKeys

A map from string names to RegistrySerializableKey instances that this serializer should handle.

Constructors

Link copied to clipboard
constructor(serializableKeys: Map<String, RegistrySerializableKey<*>>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): ProviderRegistry

Deserializes a ProviderRegistry from the specified decoder.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: ProviderRegistry)

Serializes a ProviderRegistry to the specified encoder.