MetricsMapSerializer

object MetricsMapSerializer : KSerializer<MetricsMap>

KSerializer that encodes a MetricsMap as a plain map of metric-key id to polymorphic Metric.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Serial descriptor, delegated to the underlying map serializer.

Functions

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

Decodes a key-to-metric map and wraps it in a MetricsMap.

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

Encodes value as its underlying key-to-metric map.