zorphy_migrator 3.0.0-dev.4
zorphy_migrator: ^3.0.0-dev.4 copied to clipboard
Codemod that migrates freezed model classes to zorphy using resolved AST analysis. Converts simple classes, sealed unions, @Default values, and @JsonKey annotations; reports anything that needs human [...]
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate zorphy_migratorUse it
The package has the following executables:
$ zorphy_migrator
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add zorphy_migratorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
zorphy_migrator: ^3.0.0-dev.4Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:zorphy_migrator/zorphy_migrator.dart';