Skip to content

Commit bedb294

Browse files
committed
Ignore new deprecations in pkg:analyzer 0.31.2-alpha.1
1 parent 7bb2c63 commit bedb294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

json_serializable/lib/src/json_serializable_generator.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ void $toJsonMapHelperName(String key, dynamic value) {
341341
var field = fields[arg.name];
342342

343343
if (field == null) {
344+
// ignore: deprecated_member_use
344345
if (arg.parameterKind == ParameterKind.REQUIRED) {
345346
throw new UnsupportedError('Cannot populate the required constructor '
346347
'argument: ${arg.displayName}.');
@@ -349,6 +350,7 @@ void $toJsonMapHelperName(String key, dynamic value) {
349350
}
350351

351352
// TODO: validate that the types match!
353+
// ignore: deprecated_member_use
352354
if (arg.parameterKind == ParameterKind.NAMED) {
353355
ctorNamedArguments.add(arg);
354356
} else {

0 commit comments

Comments
 (0)