-
Notifications
You must be signed in to change notification settings - Fork 35
Models
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.
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
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.