Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_gen

A code generator for your assets, fonts, and colors to eliminate string-based APIs.

pub.devRemove
json2model

Generates Dart model classes from JSON strings via command line

pub.devRemove
ScoresHealth87 (best)69
Maintenance8094 (best)
Quality100100
Popularity79 (best)11
Community80 (best)41
Compatibility100 (best)85
UsageDownloads (30 days)139k (best)950
Likes1.8k (best)6
Pub points160 / 160160 / 160
GitHub stars1.6k (best)5
MaintenanceLatest release5.15.0, 4 months ago1.1.4, 12 days ago (best)
Major versions in 12 months00
Contributors46 (best)1
Publisherwasabeef.jpvenshine.cn
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesNo
Direct dependencies61 (best)
LicenseMITBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Eliminates typo-prone string-based asset APIs.
  • Integrates well with popular packages like flutter_svg, lottie, and rive.
  • Supports build_runner and pub workspaces.
  • Supports null safety and optional fields
  • Generates toJson/fromJson automatically
  • Handles non‑identifier keys and integer values for double fields
  • Command‑line tool is easy to use
Weaknesses
  • Requires running code generation (build_runner) when assets change.
  • Adds a build step and dependency footprint to the project.
  • Only a command‑line tool, not integrated with build_runner
  • No support for runtime JSON parsing
  • Requires manual regeneration when JSON changes
WarningsNoneNone
flutter_gen vs json2model: which Flutter package should you use? | pubscout