Skip to content
Hara Kang edited this page Feb 5, 2020 · 2 revisions

Defining Response Models

We use json_annotation and json_serializable (dev dependency) to

Write model class

Code generation

$ flutter packages pub run build_runner build --delete-conflicting-outputs

If above command fails, it would be probably due to old build tools. Try rerunning above command after running below command.

$ flutter packages pub upgrade

Writing tests & measure test coverage

Deploy

$ flutter analyze --no-pub --no-current-package lib
$ flutter packages pub publish --dry-run

Clone this wiki locally