We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
validAliasesType
1 parent f08291a commit cee2018Copy full SHA for cee2018
json_serializable/lib/src/enum_utils.dart
@@ -240,8 +240,8 @@ extension on ConstantReader {
240
bool get validValueType => isString || isNull || isInt;
241
242
bool get validAliasesType =>
243
- isList &&
244
- listValue.every((element) =>
+ isSet &&
+ setValue.every((element) =>
245
(element.type?.isDartCoreString ?? false) ||
246
(element.type?.isDartCoreInt ?? false));
247
}
0 commit comments