Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
petrovWF edited this page Jun 17, 2021 · 1 revision

In this project you will find models already in use set as an example.

All models are annotated with @immutable and @JsonSerializable()

More information about JSON and serialization head to the official documentation.

Add new model

When you add new model to generate all the code with build_runner please make sure you run this command in the terminal flutter packages pub run build_runner build --delete-conflicting-outputs

Already added

In model/user/ you will find:

  • Credentials
  • RefreshToken
  • User
  • UserCredentials

In model/task/:

  • Task
  • TaskEvent
  • TaskGroup

In model/task/api/:

  • CreateTask
  • CreateTaskGroup

This models are already in use with the chopper implementation. If you use your models in combination with the current chopper implementation, ResponseToTypeConverter will help you convert chopper's result Response to BodyType. More information about ResponseToTypeConverter head to our wiki page for networking.

Feel free to add more or delete any of the models as you need.

Clone this wiki locally