strint 0.0.1
strint: ^0.0.1 copied to clipboard
Safe JSON models for Flutter — avoid UI crashes when backend sends wrong types (e.g. int instead of String). Generates freezed models with Safe* converters.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate strintUse it
The package has the following executables:
$ strint
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add strintThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
strint: ^0.0.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:strint/strint.dart';