Skip to content

Commit

Permalink
fix: fix validAliasesType
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfccp committed Nov 26, 2024
1 parent 9913d03 commit d0d9fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_serializable/lib/src/enum_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ extension on ConstantReader {
bool get validValueType => isString || isNull || isInt;

bool get validAliasesType =>
isList &&
listValue.every((element) =>
isSet &&
setValue.every((element) =>
(element.type?.isDartCoreString ?? false) ||
(element.type?.isDartCoreInt ?? false));
}

0 comments on commit d0d9fb3

Please sign in to comment.