Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefreezed_annotation

Annotations for the freezed code-generator.

pub.devRemove
json_serializable

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

pub.devRemove
ScoresHealth7893 (best)
Maintenance5590 (best)
Quality81100 (best)
Popularity9293 (best)
Community80100 (best)
Compatibility100 (best)85
UsageDownloads (30 days)4.9M (best)4.5M
Likes5644k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars2.2k (best)1.6k
MaintenanceLatest release3.1.0, a year ago6.15.2, 5 weeks ago (best)
Major versions in 12 months00
Contributors100+ (best)51
Publisherdash-overflow.netgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies3 (best)12
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Lightweight package providing only the necessary annotations for freezed
  • Clear separation between annotations and the code generation logic
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
Weaknesses
  • Does nothing without the freezed package
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
Warnings
  • Quiet but busy
None
freezed_annotation vs json_serializable: which Flutter package should you use? | pubscout