artem-galas / dart_jsona

Data formatter that creates simplified objects from JSON, creates JSON from the same simplified objects (in according with JSON API specification)
https://pub.dartlang.org/packages/dart_jsona
MIT License
2 stars 0 forks source link

TypeError in deserialize #3

Open jasonpaluck opened 4 years ago

jasonpaluck commented 4 years ago

Regardless of how I'm fetching or decoding a JSON response in flutter I receive a TypeError when attempting to deserialize the decoded JSON:

final decodedJson = json.decode(response.body);
final deserializedJson = jsona.deserialize(decodedJson); 

which returns:

_TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Map<String, String>')

I've tried casting the linked hash map as Map<String, dynamic> but no luck. Any thoughts?

artem-galas commented 4 years ago

Thanks for filling the issue. I'm not used/tested that library with flutter but I'll try and maybe find out posible fix :)

P.S sorry for long reply. I've miss notification.