Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_serializable

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

pub.devRemove
protobuf

Provides runtime support for Dart protocol buffer messages generated by protoc_plugin.

pub.devRemove
ScoresHealth94 (best)84
Maintenance91 (best)82
Quality100 (best)78
Popularity93 (best)86
Community100 (best)80
Compatibility85100 (best)
UsageDownloads (30 days)4.5M (best)3.2M
Likes4k (best)256
Pub points160 / 160 (best)150 / 160
GitHub stars1.6k (best)571
MaintenanceLatest release6.15.2, 5 weeks ago (best)6.1.0, 2 months ago
Major versions in 12 months0 (best)1
Contributors5168 (best)
Publishergoogle.devgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies123 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Eliminates boilerplate for JSON parsing and serialization
  • Supports custom type converters, enums, and JSON Schema generation
  • Official Google-supported implementation
  • Handles large messages and text format conversion
  • Works across all major platforms
Weaknesses
  • Requires running a code generator (build_runner) during development
  • Generated files add to your source tree and require regeneration on model changes
  • Requires code generation step with protoc_plugin
  • No runtime schema introspection
WarningsNoneNone
json_serializable vs protobuf: which Flutter package should you use? | pubscout