Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefunctional_data

Annotations and helper lenses for generating boilerplate for immutable data types.

pub.devRemove
json_annotation

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

pub.devRemove
ScoresHealth5084 (best)
Maintenance1270 (best)
Quality8181
Popularity5797 (best)
Community6380 (best)
Compatibility100100
UsageDownloads (30 days)176k16M (best)
Likes191.3k (best)
Pub points150 / 160150 / 160
GitHub stars401.6k (best)
MaintenanceLatest release1.2.0, 3 years ago4.12.0, 6 months ago (best)
Major versions in 12 months00
Contributors551 (best)
Publisherspkersten.nlgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies21 (best)
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Minimally intrusive on class design by using mixins.
  • Powerful lens support for manipulating nested objects and collections.
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
Weaknesses
  • Requires running build_runner for code generation.
  • Limited feature set compared to broader generators like Freezed.
  • 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
functional_data vs json_annotation: which Flutter package should you use? | pubscout