Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeindex_generator

Automatically generate index / barrel / library files with all exports needed.

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth5293 (best)
Maintenance1490 (best)
Quality91100 (best)
Popularity5393 (best)
Community39100 (best)
Compatibility8585
UsageDownloads (30 days)24k4.5M (best)
Likes334k (best)
Pub points140 / 160160 / 160 (best)
GitHub stars161.6k (best)
MaintenanceLatest release4.1.2, a year ago6.15.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors751 (best)
PublisherUnverifiedgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies11 (best)12
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Supports custom include/exclude filters via glob expressions.
  • Can be run via CLI or integrated with build_runner.
  • Allows custom output paths, disclaimers, and package-style exports.
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Not documented beyond configuration options and basic usage.
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
WarningsNoneNone
index_generator vs json_serializable: which Flutter package should you use? | pubscout