GenericMap

data class GenericMap<K, V>(val map: Map<K, V>)

A wrapper data class for a Map to be serialized with MsgPack format. Without this wrapper, a map will be serialized as an object. This wrapper will serialize the map as a Generic Map extension type.

Parameters

K

The key type of the map.

V

The value type of the map.

Constructors

Link copied to clipboard
constructor(map: Map<K, V>)

Properties

Link copied to clipboard
val map: Map<K, V>

The map to be serialized.