Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_mappable

JSON serialization and data classes generator supporting generics, inheritance, and customization.

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth8994 (best)
Maintenance8591 (best)
Quality100100
Popularity8393 (best)
Community80100 (best)
Compatibility100 (best)85
UsageDownloads (30 days)513k4.5M (best)
Likes4704k (best)
Pub points160 / 160160 / 160
GitHub stars2421.6k (best)
MaintenanceLatest release4.10.0, 2 months ago6.15.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors1951 (best)
Publisherschultek.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies3 (best)12
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Full support for generics, polymorphism, and inheritance.
  • All-in-one package generating serialization, equality, toString, and copyWith.
  • Highly flexible with mapping hooks and custom configuration options.
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Requires running build_runner for code generation.
  • toJson() returns a String rather than a Map<String, dynamic>, which requires attention when migrating from other packages.
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
WarningsNoneNone
dart_mappable vs json_serializable: which Flutter package should you use? | pubscout