Open jaumard opened 5 years ago
Can you post what is generated for getInventory
.
Just tried only serializer involve like this and was able to reproduce
import 'package:jaguar_serializer/jaguar_serializer.dart';
void main() {
final data = '{"sold":17,"placed":1,"string":1139,"Operated":4,"NOT available":1,"123456":1,"Nonavailable":1,"pending":14,"Not-Operated":10,"available":854,"For sale":1,"Offline":1}';
final repo = JsonRepo();
Map<String, int> parsedData = repo.from(data);
print(parsedData);
}
So now Map<String, int>
can be parsed without problem thanks @tejainece ! Let's keep this issue to manage Map<String, Map<String, ...>>
:)
In the swagger codegen I'm doing, the swagger api has something like:
Future<Map<String, int>> getInventory();
My problem is how Jaguar serializer can parse the string response to this ?