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.

0.0.1 #

  • Initial release.
  • Safe* JSON converters (SafeInt, SafeString, SafeDouble, SafeBool, SafeDateTime, SafeMap, SafeObject, SafePrimitiveList, SafeObjectList).
  • CreateModel() and code generator for freezed models with Safe* annotations.
  • CLI: dart run strint:generate lib/models to generate from Dart files or YAML.
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