DynamicEnumCodec.sparse( {required this.registry, required Map<int, String> map}) { this.map.addAll(map); }