diff --git a/json_serializable/README.md b/json_serializable/README.md index 5e7498540..cb1eec619 100644 --- a/json_serializable/README.md +++ b/json_serializable/README.md @@ -75,10 +75,7 @@ Map _$PersonToJson(Person instance) => { Once you have added the annotations to your code you then need to run the code generator to generate the missing `.g.dart` generated dart files. -With a Dart package, run `dart run build_runner build` in the package directory. - -With a Flutter package, run `flutter pub run build_runner build` in your package -directory. +Run `dart run build_runner build` in the package directory. # Annotation values diff --git a/json_serializable/tool/readme/readme_template.md b/json_serializable/tool/readme/readme_template.md index d8de00352..79ac1c7dd 100644 --- a/json_serializable/tool/readme/readme_template.md +++ b/json_serializable/tool/readme/readme_template.md @@ -35,10 +35,7 @@ Building creates the corresponding part `example.g.dart`: Once you have added the annotations to your code you then need to run the code generator to generate the missing `.g.dart` generated dart files. -With a Dart package, run `dart run build_runner build` in the package directory. - -With a Flutter package, run `flutter pub run build_runner build` in your package -directory. +Run `dart run build_runner build` in the package directory. # Annotation values