Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecarp_serializable

Polymorphic JSON (de)serialization using json_serializable with type info.

pub.devRemove
freezed_annotation

Annotations for the freezed code-generator.

pub.devRemove
ScoresHealth83 (best)78
Maintenance95 (best)55
Quality93 (best)81
Popularity4392 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)264k4.9M (best)
Likes4564 (best)
Pub points150 / 160150 / 160
GitHub stars842.2k (best)
MaintenanceLatest release3.0.2, 5 days ago (best)3.1.0, a year ago
Major versions in 12 months10 (best)
Contributors19100+ (best)
Publishercarp.dkdash-overflow.net
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies2 (best)3
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Adds polymorphic support with minimal extra code
  • Re-exports uuid for convenient ID generation
  • Integrates with existing json_serializable workflow
  • Provides graceful fallback for unknown types
  • Lightweight package providing only the necessary annotations for freezed
  • Clear separation between annotations and the code generation logic
Weaknesses
  • Requires build_runner and code generation
  • Adds extra registration step at startup
  • Limited to json_serializable ecosystem
  • No support for other serialization formats
  • Does nothing without the freezed package
WarningsNone
  • Quiet but busy
carp_serializable vs freezed_annotation: which Flutter package should you use? | pubscout