File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
lib/src/common/parameters Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -43,26 +43,13 @@ class ExcludedIdentifiersListParameter {
4343 factory ExcludedIdentifiersListParameter .defaultFromJson (
4444 Map <String , dynamic > json,
4545 ) {
46- final exclude = < ExcludedIdentifierParameter > [];
47-
4846 final excludeList =
4947 json[ExcludedIdentifiersListParameter .excludeParameterName]
5048 as Iterable ? ??
5149 [];
5250
53- for (final item in excludeList) {
54- if (item is Map ) {
55- exclude.add (ExcludedIdentifierParameter .fromJson (item));
56- } else if (item is String ) {
57- exclude.add (
58- ExcludedIdentifierParameter (
59- declarationName: item,
60- ),
61- );
62- }
63- }
64- return ExcludedIdentifiersListParameter (
65- exclude: exclude,
51+ return ExcludedIdentifiersListParameter .fromJson (
52+ excludeList: excludeList,
6653 );
6754 }
6855
You can’t perform that action at this time.
0 commit comments