File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 6.1.4
2
+
3
+ - Fix issues with latest ` package:analyzer ` related to enums and annotations.
4
+
1
5
## 6.1.3
2
6
3
7
- Allow latest ` package:analyzer ` .
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ T enumValueForDartObject<T>(
45
45
List <T > items,
46
46
String Function (T ) name,
47
47
) =>
48
- items. singleWhere ((v) => source.getField (name (v)) != null ) ;
48
+ items[ source.getField ('index' ) ! . toIntValue () ! ] ;
49
49
50
50
/// Return an instance of [JsonSerializable] corresponding to a the provided
51
51
/// [reader] .
Original file line number Diff line number Diff line change 1
1
name : json_serializable
2
- version : 6.1.3
2
+ version : 6.1.4
3
3
description : >-
4
4
Automatically generate code for converting to and from JSON by annotating
5
5
Dart classes.
You can’t perform that action at this time.
0 commit comments