factory EnumMap.fromJson(List<K> keys, Map<String, Object?> json) { return EnumMapFactory<K>(keys).fromJson(json) as EnumMap<K, V>; }