Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dart/Flutter: build_value vs json_serializable

Wondering what is the different between the dart libraries build_value vs json_serializable ?

both appears to be doing the same thing.

like image 770
Dinesh Avatar asked Nov 06 '22 17:11

Dinesh


1 Answers

Docs mentions:

The json_serializable package allows you to make regular classes serializable by using annotations, whereas the built_value package provides a higher-level way of defining immutable value classes that can also be serialized to JSON.

like image 132
Rudresh Narwal Avatar answered Nov 12 '22 10:11

Rudresh Narwal