Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_serializable

Automatically generate code for converting Dart classes to and from JSON.

pub.devRemove
mobx_codegen

Generates MobX store boilerplate from @observable, @computed and @action annotations.

pub.devRemove
ScoresHealth94 (best)85
Maintenance91 (best)78
Quality100 (best)96
Popularity93 (best)71
Community100100
Compatibility8585
UsageDownloads (30 days)4.5M (best)92k
Likes4k (best)301
Pub points160 / 160 (best)150 / 160
GitHub stars1.6k2.5k (best)
MaintenanceLatest release6.15.2, 4 weeks ago (best)2.8.0, 2 months ago
Major versions in 12 months00
Contributors5176 (best)
Publishergoogle.devvyuh.tech
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies126 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
  • Reduces manual MobX boilerplate
  • Integrates with Dart's build system
  • Keeps store definitions concise and type‑safe
Weaknesses
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
  • Requires build_runner step and generated files
  • Only works with MobX, not other state‑management libs
WarningsNoneNone
json_serializable vs mobx_codegen: which Flutter package should you use? | pubscout