Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_json_mapper

Annotate Dart objects to serialize and deserialize them from and to JSON.

pub.devRemove
freezed_annotation

Annotations for the freezed code-generator.

pub.devRemove
ScoresHealth5778 (best)
Maintenance1255 (best)
Quality91 (best)81
Popularity4992 (best)
Community6980 (best)
Compatibility100100
UsageDownloads (30 days)2k4.9M (best)
Likes279564 (best)
Pub points140 / 160150 / 160 (best)
GitHub stars3952.2k (best)
MaintenanceLatest release2.2.20, a year ago (best)3.1.0, a year ago
Major versions in 12 months00
Contributors6100+ (best)
Publisheredensapple.comdash-overflow.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies93 (best)
LicenseBSD-3-CLAUSEMIT
Setup effortMediumLow
JudgementStrengths
  • Keeps model classes clean with no boilerplate serialization methods inside them.
  • Rich out-of-the-box features like polymorphism, object cloning, and case style conversion.
  • Generates a single centralized mapper file for the whole project.
  • Lightweight package providing only the necessary annotations for freezed
  • Clear separation between annotations and the code generation logic
Weaknesses
  • Requires running a code generator (`build_runner`) whenever model classes change.
  • Less common choice in the Dart ecosystem compared to `json_serializable`.
  • Does nothing without the freezed package
WarningsNone
  • Quiet but busy
dart_json_mapper vs freezed_annotation: which Flutter package should you use? | pubscout