Solution: Serializing JSON Using json_serializable
Explore solutions to serializing JSON using json_serializable challenge.
Solutions
Great job on completing all the steps in the previous challenge! Feel free to compare your code solutions with the solutions below:
Challenge 1: Set up json_serializable
In the pubspec.yaml file, we add the json_annotation dependency, which will allow us to add annotations to our code.
Then, under the dev_dependencies ...