devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Consider using package for json serialization

Open kenzieschmoll opened this issue 3 years ago • 1 comments

Throughout DevTools, we manually implement serialization methods like .parse constructors or toJson methods / json getters.

We should consider using a package like https://pub.dev/packages/json_serializable to simplify and unify how we serialize dart objects. When choosing a package, we'll need to make sure everything will still work well in g3.

kenzieschmoll avatar Sep 19 '22 21:09 kenzieschmoll

To work with g3 we'd probably want to use built_value.

jacob314 avatar Sep 20 '22 23:09 jacob314