diff --git a/json_serializable/test/src/_json_enum_test_input.dart b/json_serializable/test/src/_json_enum_test_input.dart index 02e126010..fed99e481 100644 --- a/json_serializable/test/src/_json_enum_test_input.dart +++ b/json_serializable/test/src/_json_enum_test_input.dart @@ -6,6 +6,7 @@ import 'package:json_annotation/json_annotation.dart'; import 'package:source_gen_test/annotations.dart'; @ShouldGenerate(r''' +// ignore: unused_element const _$EnumValueIssue1147EnumMap = { EnumValueIssue1147.success: 200, EnumValueIssue1147.weird: 601, diff --git a/json_serializable/test/src/unknown_enum_value_test_input.dart b/json_serializable/test/src/unknown_enum_value_test_input.dart index df858fd45..4af77bfc5 100644 --- a/json_serializable/test/src/unknown_enum_value_test_input.dart +++ b/json_serializable/test/src/unknown_enum_value_test_input.dart @@ -9,6 +9,7 @@ UnknownEnumValue _$UnknownEnumValueFromJson(Map json) => unknownValue: UnknownEnumValueItems.vUnknown) ?? UnknownEnumValueItems.vNull; +// ignore: unused_element const _$UnknownEnumValueItemsEnumMap = { UnknownEnumValueItems.v0: 'v0', UnknownEnumValueItems.v1: 'v1',