Flutter JSON Parsing: fromJson, Null Safety and Code Generation
by Muhammad Naeem dev.to
11 min read
Almost every Flutter app talks to an API, and almost every API speaks JSON. Dart has no reflection in Flutter, so you can't hand a JSON string to a library and get a typed object back by magic. You either write the mapping yourself or generate it. This post covers both, in the order you'll meet them: jsonDecode, a hand-written model, the null safety traps, nested objects and lists, json_serializa…
More like this
- Video
Dart Null Safety: The Ultimate Guide to Non-Nullable Types
by
Andrea Bizzotto
, on Flutter Pro
Andrea Bizzotto
@andreabizzotto 🇬🇧 United Kingdom
Available for hire
Andrea Bizzotto has extensive experience in mobile app development, having built complex apps for various clients and as an independent developer. He is passion...
View Andrea on Flutter ProThis video outlines what's changed with non-nullable types, and shows how to use the new Null Safety features by example.
Watch on YouTube
Article 14 min readFlutter widget tests: a practical example
by
Natalie Masse Hooper
, on Flutter Pro
Natalie Masse Hooper
@nataliemassehooper 🇬🇧 United Kingdom
Available for hire
Mobile developer since 2010. Native Android from 2010 until 2017, Flutter + Native Android from 2017 until 2020, Flutter since 2020.
View Natalie on Flutter ProWhen it comes to mobile apps, automated tests play a very important role in app maintenance. So, how do you write tests in Flutter? As you would expect from a modern framework, Flutter offers both uni...
Read on cogitas.net
Article 10 min readMigrate to Null Safety in Flutter
Hey welcome, Glad that you are here.
Read on medium.com
Article 6 min readAuto Generated Json Deserialization With Json Annotation In Flutter
Today we'll see how we can use auto generated deserialization library to parse json with json_annotation and json_serializable dependency in flutter example
Read on codinginfinite.com