Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_mappable_builder

Builder that generates dart_mappable code for JSON serialization and data classes.

pub.devRemove
json_annotation

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

pub.devRemove
ScoresHealth7484 (best)
Maintenance77 (best)70
Quality8181
Popularity4997 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)106k16M (best)
Likes141.3k (best)
Pub points150 / 160150 / 160
GitHub stars2421.6k (best)
MaintenanceLatest release4.10.1, 8 days ago (best)4.12.0, 6 months ago
Major versions in 12 months00
Contributors1951 (best)
Publisherschultek.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies91 (best)
LicenseMITBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Full support for generics, inheritance and primary constructors
  • Highly customizable via annotations
  • Fast runtime performance because code is generated
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • Requires build_runner and code generation step
  • Only works for Dart (no native platform plugins)
  • 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.
WarningsNoneNone
dart_mappable_builder vs json_annotation: which Flutter package should you use? | pubscout