Skip to content

Commit

Permalink
fix: add unused_element to decode map
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfccp committed Nov 26, 2024
1 parent 3918173 commit 2885b8d
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 @@ -66,7 +66,8 @@ String? enumMapsFromType(

final decodeMap = decodeItems == null
? null
: 'const ${constDecodeMapName(targetType)} = {\n$decodeItems\n};';
: '// ignore: unused_element\n'
'const ${constDecodeMapName(targetType)} = {\n$decodeItems\n};';

return valuesMap == null && decodeMap == null
? null
Expand Down

0 comments on commit 2885b8d

Please sign in to comment.