strint 0.0.1 copy "strint: ^0.0.1" to clipboard
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 strint

Use 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 strint

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  strint: ^0.0.1

Alternatively, 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';
0
likes
120
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Topics

#flutter #json #freezed #code-generation

License

BSD-3-Clause (license)

Dependencies

flutter, freezed_annotation, json_annotation, yaml

More

Packages that depend on strint