Skip to content

Commit

Permalink
fix: also add unused_element to constMapName
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfccp committed Nov 26, 2024
1 parent 1883801 commit 63699fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json_serializable/lib/src/enum_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ String? enumMapsFromType(

final valuesMap = valuesItems == null
? null
: 'const ${constMapName(targetType)} = {\n$valuesItems\n};';
: '// ignore: unused_element\n'
'const ${constMapName(targetType)} = {\n$valuesItems\n};';

final decodeItems = enumAliases == null
? null
Expand Down

0 comments on commit 63699fe

Please sign in to comment.