We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13c6ee8 commit d01a8dbCopy full SHA for d01a8db
lib/src/crimson_generator.dart
@@ -329,7 +329,7 @@ class CrimsonGenerator extends GeneratorForAnnotation<Json> {
329
writeObjectStart();
330
for (final key in $name.keys) {
331
writeObjectKey(key);
332
- final ${name}Value = $name[key]!;
+ final ${name}Value = $name[key] ${type.mapParam.isNullable ? '' : '!'};
333
${_write('${name}Value', type.mapParam)}
334
}
335
writeObjectEnd();''';
0 commit comments