clean_network 1.0.5 clean_network: ^1.0.5 copied to clipboard
A Wrapper for Dio to make network calls in a clean way. It supports REST and GraphQL with clean architecture and cache support.
1.0.5 #
- added
PageParams
class - added
fromJson
methods onPaginatedResponse
classes Note: to use fromJson methods your API response must have the following structure:
{
"data": [
{
"id": 1,
"name": "John",
"email": "john@doe.com"
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 1
}
}
or
{
"data": [
{
"id": 1,
"name": "John",
"email": "john@doe.com"
}
],
"pagination": {
"currentPage": 1,
"lastPage": 1,
"perPage": 15,
"total": 1
}
}
1.0.4 #
- added
PaginatedResponse
class - added
PaginatedCleanResponse
,'PaginatedEitherResponse' and 'EitherResponse' typedefs - export fpdart package
1.0.3 #
- added examples
1.0.2 #
- export dio package
1.0.1 #
- update docs
1.0.0 #
- update docs
1.0.0+1 #
- initial release