Skip to content

Commit 3e3a4ee

Browse files
author
shaark
committed
issue-167. fixed after comments
1 parent 7e614d2 commit 3e3a4ee

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

lib/src/common/parameters/excluded_identifiers_list_parameter.dart

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)