32 lines
1.1 KiB
Dart
32 lines
1.1 KiB
Dart
import 'package:flutter_app/app/networking/api_service.dart';
|
|
import 'package:flutter_app/app/networking/dio/base_api_service.dart';
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Model Decoders
|
|
| -------------------------------------------------------------------------
|
|
| Model decoders are used in 'app/networking/' for morphing json payloads
|
|
| into Models. Learn more https://nylo.dev/docs/4.x/decoders#model-decoders
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
final Map<Type, dynamic> modelDecoders = {
|
|
// ...
|
|
};
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Decoders
|
|
| -------------------------------------------------------------------------
|
|
| API decoders are used when you need to access an API service using the
|
|
| 'api' helper. E.g. api<MyApiService>((request) => request.fetchData());
|
|
| Learn more https://nylo.dev/docs/4.x/decoders#api-decoders
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
final Map<Type, BaseApiService> apiDecoders = {
|
|
ApiService: ApiService(),
|
|
|
|
// ...
|
|
};
|