FormData and List of Int not working as expected. #2241
Labels
h: need more info
Further information is requested
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
Package
dio
Version
5.4.3+1
Operating-System
Android, iOS
Adapter
Default Dio
Output of
flutter doctor -v
Dart Version
Dart SDK version: 3.4.3 (stable)
Steps to Reproduce
List<int> categories = [104, 105];
Map<String, dynamic> jsonPayload = {'categories': categories};
print(FormData.fromMap(jsonPayload).fields);
Expected Result
[MapEntry(categories[0]: 104), MapEntry(categories[1]: 105)]
Actual Result
[MapEntry(categories: 104), MapEntry(categories: 105)]
The text was updated successfully, but these errors were encountered: