mobx.dart icon indicating copy to clipboard operation
mobx.dart copied to clipboard

adopt json_serializable_mobx

Open subzero911 opened this issue 10 months ago • 2 comments

There's a great package https://pub.dev/packages/json_serializable_mobx

What it does:

  • serialize ObservableList<T> / ObservableMap<T> / ObservableSet<T> (so you don't have to write these awkward converters like ObservableTodoListConverter)
  • serialize Observable<T>

Unfortunately, it's abandoned. The only maintainer doesn't support it anymore https://github.com/jperezr21/json_serializable_immutable_collections/issues/28

I ask you to make this code the part of mobx_codegen

subzero911 avatar Feb 27 '25 16:02 subzero911

Ya we can definitely take this...I had a quick look at the mobx version and there is not much there. We could bring it in easily (I think). Happy to work with you on the PR and review.

pavanpodila avatar Feb 28 '25 05:02 pavanpodila

Work in progress

amondnet avatar Sep 28 '25 20:09 amondnet