toMap method

Map<K, V> toMap()

Snapshot as an IndexMap. If K extends Enum, call .toJson() on the result to serialise via EnumMapByName.

Implementation

Map<K, V> toMap() => IndexMap.of(keys, values);