Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson2model

Generates Dart model classes from JSON strings via command line

pub.devRemove
protoc_plugin

Generates Dart source files from Protocol Buffer (.proto) definitions using the protoc compiler.

pub.devRemove
ScoresHealth6980 (best)
Maintenance94 (best)82
Quality100 (best)78
Popularity1173 (best)
Community4180 (best)
Compatibility8585
UsageDownloads (30 days)950314k (best)
Likes697 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars5571 (best)
MaintenanceLatest release1.1.4, 12 days ago (best)25.1.0, 2 months ago
Major versions in 12 months0 (best)1
Contributors168 (best)
Publishervenshine.cngoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)6
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • 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
  • Produces clean, formatted Dart code
  • Integrates with standard protobuf workflow
  • Supports gRPC and Kythe metadata options
Weaknesses
  • Only a command‑line tool, not integrated with build_runner
  • No support for runtime JSON parsing
  • Requires manual regeneration when JSON changes
  • Requires external protoc installation
  • Only works with protobuf package versions
WarningsNoneNone
json2model vs protoc_plugin: which Flutter package should you use? | pubscout