Generating code for nested classes

Further references

It is hard to think of a mobile app that doesn’t need to communicate with a
web server or easily store structured data at some point. When making
network-connected apps, the chances are that it needs to consume some good old
JSON, sooner or later.

This guide looks into ways of using JSON with Flutter.
It covers which JSON solution to use in different scenarios, and why.

To avoid confusion, this doc uses “serialization” when referring to the
  overall process, and “encoding” and “decoding” when specifically
  referring to those processes.

Which JSON serialization method is right for me?

This article covers two general strategies for working with JSON:

Manual serialization

Automated serialization using code generation