Describe the bug
When I'm calling the retrofit method, I've got this error :
Error: Converting object to an encodable object failed: Instance of 'FormData'
### DioException: DioException [unknown]: null
Error: Converting object to an encodable object failed: Instance of 'FormData'
#0 Options.compose (package:dio/src/options.dart:347:56)
First surprise, it doesn't compile if i'm not explicitly importing this :
import 'dart:convert' show jsonEncode;
It's not documented, but I've seen it on the example.
It's weird to import something not explicitly used on my file.
When I run it, on runtime, I've got this error :
Error: Converting object to an encodable object failed: Instance of 'FormData'
### DioException: DioException [unknown]: null
Error: Converting object to an encodable object failed: Instance of 'FormData'
#0 Options.compose (package:dio/src/options.dart:347:56)
Describe the bug When I'm calling the retrofit method, I've got this error :
pubspec.yaml
To Reproduce Steps to reproduce the behavior:
First surprise, it doesn't compile if i'm not explicitly importing this :
import 'dart:convert' show jsonEncode;
It's not documented, but I've seen it on the example. It's weird to import something not explicitly used on my file.
When I run it, on runtime, I've got this error :
Expected behavior Working as expected