Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuilt_value_generator

Generates immutable value types, enum classes, and JSON serializers for Dart.

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth8294 (best)
Maintenance6491 (best)
Quality96100 (best)
Popularity7793 (best)
Community100100
Compatibility8585
UsageDownloads (30 days)464k4.5M (best)
Likes1484k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars8841.6k (best)
MaintenanceLatest release8.13.0, 3 months ago6.15.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors5051 (best)
Publishergoogle.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies7 (best)12
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortMediumLow
JudgementStrengths
  • Full support for object-oriented design, interfaces, and generics in serialization.
  • Immutable collections and validation hooks out of the box.
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Requires code generation and the build_runner tool.
  • Steeper learning curve and more boilerplate than some newer alternatives.
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
WarningsNoneNone
built_value_generator vs json_serializable: which Flutter package should you use? | pubscout