Updated source.md file to include JSON to Dart Model converter #626
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Json to Dart website/app is a neat lil' helper that I wish I had since the day 1 when I started delving into the Flutter world.
The way I use it is like this:
VOILA! I get a FULLY mapped model that will accompany my HTTP responses. Literally, that's all there is to it.
I use http Dart package to make (async) HTTP requests, get the response body, use ('dart:convert') json.decode as a parameter in the constructor class_name.fromJson(json.decode(response.body)) and BOOM - there it is. :)
JSON is a bit weird in my opinion in the flutter/dart world this baby makes everything much easier, with automated model generation. :)
Also, I'm including here a full json/converted model example:
JSON
Dart model
Thanks for reading my wall of text, hope this can help. :)
DISCLAIMER:
I am NOT the author of this app, I just found it randomly in the foggy mists of the internet, but I believe this deserves to get it's place in this awesome awesome-flutter collection.
Many thanks!