Regenerate files with json_serializable v1.2.1 (dart-lang/pubspec_parse#22)
diff --git a/pkgs/pubspec_parse/lib/src/dependency.g.dart b/pkgs/pubspec_parse/lib/src/dependency.g.dart index cba3364..7aee206 100644 --- a/pkgs/pubspec_parse/lib/src/dependency.g.dart +++ b/pkgs/pubspec_parse/lib/src/dependency.g.dart
@@ -8,7 +8,8 @@ SdkDependency _$SdkDependencyFromJson(Map json) { return $checkedNew('SdkDependency', json, () { - $checkKeys(json, requiredKeys: ['sdk'], disallowNullValues: ['sdk']); + $checkKeys(json, + requiredKeys: const ['sdk'], disallowNullValues: const ['sdk']); var val = SdkDependency($checkedConvert(json, 'sdk', (v) => v as String), version: $checkedConvert(json, 'version', (v) => v == null ? null : _constraintFromString(v as String))); @@ -18,7 +19,8 @@ GitDependency _$GitDependencyFromJson(Map json) { return $checkedNew('GitDependency', json, () { - $checkKeys(json, requiredKeys: ['url'], disallowNullValues: ['url']); + $checkKeys(json, + requiredKeys: const ['url'], disallowNullValues: const ['url']); var val = GitDependency( $checkedConvert( json, 'url', (v) => v == null ? null : parseGitUri(v as String)), @@ -31,7 +33,8 @@ HostedDependency _$HostedDependencyFromJson(Map json) { return $checkedNew('HostedDependency', json, () { $checkKeys(json, - allowedKeys: ['version', 'hosted'], disallowNullValues: ['hosted']); + allowedKeys: const ['version', 'hosted'], + disallowNullValues: const ['hosted']); var val = HostedDependency( version: $checkedConvert(json, 'version', (v) => v == null ? null : _constraintFromString(v as String)), @@ -44,9 +47,9 @@ HostedDetails _$HostedDetailsFromJson(Map json) { return $checkedNew('HostedDetails', json, () { $checkKeys(json, - allowedKeys: ['name', 'url'], - requiredKeys: ['name'], - disallowNullValues: ['name', 'url']); + allowedKeys: const ['name', 'url'], + requiredKeys: const ['name'], + disallowNullValues: const ['name', 'url']); var val = HostedDetails( $checkedConvert(json, 'name', (v) => v as String), $checkedConvert(
diff --git a/pkgs/pubspec_parse/lib/src/pubspec.g.dart b/pkgs/pubspec_parse/lib/src/pubspec.g.dart index dfb0bcf..7ac66f7 100644 --- a/pkgs/pubspec_parse/lib/src/pubspec.g.dart +++ b/pkgs/pubspec_parse/lib/src/pubspec.g.dart
@@ -27,7 +27,7 @@ dependencyOverrides: $checkedConvert( json, 'dependency_overrides', (v) => parseDeps(v as Map))); return val; - }, fieldKeyMap: { + }, fieldKeyMap: const { 'devDependencies': 'dev_dependencies', 'dependencyOverrides': 'dependency_overrides' });
diff --git a/pkgs/pubspec_parse/pubspec.yaml b/pkgs/pubspec_parse/pubspec.yaml index 490a6b2..2db643d 100644 --- a/pkgs/pubspec_parse/pubspec.yaml +++ b/pkgs/pubspec_parse/pubspec.yaml
@@ -17,7 +17,7 @@ dev_dependencies: build_runner: ^0.10.0 - json_serializable: ^1.0.0 + json_serializable: ^1.2.1 path: ^1.5.1 stack_trace: ^1.9.2 test: ^1.0.0