1 min readSep 20, 2018
If you are still having problems, you can mail me or tweet to me with your code issues. It’s difficult to solve all your issues in Medium. And json_serializable will only auto generate the parsing code for you. Like the factory methods, so you don’t have to write that manually. Only thing you have to write yourself are the model classes.
But decoding it will be as simple as
final bakery = Bakery.fromJson(json.decode(jsonString));
I have added a new example to this repository that is solved using json_serializable library. Check out bakery_model.dart