freshteapot / learnalist-mobile

Building a mobile app for the learnalist-api.
1 stars 0 forks source link

The json parsing is a mess, maybe there is a cleaner way #1

Closed freshteapot closed 5 years ago

freshteapot commented 5 years ago

Due to the nature of listData being different between listTypes. I have a bit of a mess going on. Could be cleaner with a different json encoding /decoding?

https://pub.dartlang.org/packages/dart_json_mapper

freshteapot commented 5 years ago

Via e5e8d13386cdeae78b109d6bd9dba2f7753b581c I cleaned up the alist models so the json is a little better, more verbose, less magic.