Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
json_model

Generate Dart model classes from JSON files with a single command.

pub.devRemove
ScoresHealth84 (best)39
Maintenance70 (best)0
Quality8185 (best)
Popularity97 (best)40
Community80 (best)6
Compatibility100 (best)85
UsageDownloads (30 days)16M (best)1.9k
Likes1.3k (best)43
Pub points150 / 160 (best)125 / 160
GitHub stars1.6k (best)730
MaintenanceLatest release4.12.0, 6 months ago (best)1.0.0, 5 years ago
Major versions in 12 months00
Contributors51 (best)1
Publishergoogle.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoYes
Direct dependencies1 (best)8
LicenseBSD-3-CLAUSEUNKNOWN
Setup effortLowLow
JudgementStrengths
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
  • Keeps raw JSON files as the single source of truth for your models
  • Supports referencing other models and arrays using a simple syntax
  • Allows fine-tuning generation rules via `$meta` configurations and ignores
Weaknesses
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
  • License is unknown
  • Relies on external JSON files rather than Dart-first code definitions
WarningsNone
  • Quiet but busy
json_annotation vs json_model: which Flutter package should you use? | pubscout