flutter-woocommerce-app/LabelStoreMax/lib/config/decoders.dart
2022-05-19 21:37:41 +01:00

31 lines
1.0 KiB
Dart

import 'package:flutter_app/app/networking/api_service.dart';
/*
|--------------------------------------------------------------------------
| Model Decoders
| -------------------------------------------------------------------------
| Model decoders are used in 'app/networking/' for morphing json payloads
| into Models. Learn more https://nylo.dev/docs/3.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/3.x/decoders#api-decoders
|--------------------------------------------------------------------------
*/
final Map<Type, dynamic> apiDecoders = {
ApiService: ApiService(),
// ...
};