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 62f1aae commit cb4bcb3Copy full SHA for cb4bcb3
json_serializable/lib/src/enum_utils.dart
@@ -48,7 +48,7 @@ String? enumMapsFromType(
48
? null
49
: [
50
for (final MapEntry(:key, :value) in enumMap.entries)
51
- ' ${targetType.element!.name}.${key.name}: '
+ ' ${targetType.element3!.name3}.${key.name}: '
52
'${jsonLiteralAsDart(value)},',
53
].join();
54
0 commit comments