Move json_serializable config to build.yaml
diff --git a/pkgs/pubspec_parse/build.yaml b/pkgs/pubspec_parse/build.yaml
index 69bcb1f..90eeb90 100644
--- a/pkgs/pubspec_parse/build.yaml
+++ b/pkgs/pubspec_parse/build.yaml
@@ -10,3 +10,4 @@
         options:
           any_map: true
           checked: true
+          create_to_json: false
diff --git a/pkgs/pubspec_parse/lib/src/dependency.dart b/pkgs/pubspec_parse/lib/src/dependency.dart
index cba01dc..d9b3db2 100644
--- a/pkgs/pubspec_parse/lib/src/dependency.dart
+++ b/pkgs/pubspec_parse/lib/src/dependency.dart
@@ -103,7 +103,7 @@
   String toString() => '$runtimeType: $_info';
 }
 
-@JsonSerializable(createToJson: false)
+@JsonSerializable()
 class SdkDependency extends Dependency {
   @JsonKey(nullable: false, disallowNullValue: true, required: true)
   final String sdk;
@@ -116,7 +116,7 @@
   String get _info => sdk;
 }
 
-@JsonSerializable(createToJson: false)
+@JsonSerializable()
 class GitDependency extends Dependency {
   @JsonKey(fromJson: parseGitUri, required: true, disallowNullValue: true)
   final Uri url;
@@ -190,7 +190,7 @@
   String get _info => 'path@$path';
 }
 
-@JsonSerializable(createToJson: false, disallowUnrecognizedKeys: true)
+@JsonSerializable(disallowUnrecognizedKeys: true)
 class HostedDependency extends Dependency {
   @JsonKey(fromJson: _constraintFromString)
   final VersionConstraint version;
@@ -206,7 +206,7 @@
   String get _info => version.toString();
 }
 
-@JsonSerializable(createToJson: false, disallowUnrecognizedKeys: true)
+@JsonSerializable(disallowUnrecognizedKeys: true)
 class HostedDetails {
   @JsonKey(required: true, disallowNullValue: true)
   final String name;
diff --git a/pkgs/pubspec_parse/lib/src/pubspec.dart b/pkgs/pubspec_parse/lib/src/pubspec.dart
index df71262..c7fec6b 100644
--- a/pkgs/pubspec_parse/lib/src/pubspec.dart
+++ b/pkgs/pubspec_parse/lib/src/pubspec.dart
@@ -11,7 +11,7 @@
 
 part 'pubspec.g.dart';
 
-@JsonSerializable(createToJson: false)
+@JsonSerializable()
 class Pubspec {
   // TODO: executables
   // TODO: publish_to