We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3918173 commit 2885b8dCopy full SHA for 2885b8d
json_serializable/lib/src/enum_utils.dart
@@ -66,7 +66,8 @@ String? enumMapsFromType(
66
67
final decodeMap = decodeItems == null
68
? null
69
- : 'const ${constDecodeMapName(targetType)} = {\n$decodeItems\n};';
+ : '// ignore: unused_element\n'
70
+ 'const ${constDecodeMapName(targetType)} = {\n$decodeItems\n};';
71
72
return valuesMap == null && decodeMap == null
73
0 commit comments