Closed Luppakorva closed 4 years ago
This is surely something extremely simple that my tired head cannot just wrap itself around at the moment but how to parse the response?
If I try to access e['name'] for example directly I get nothing. If I try to json.decode(e) I'm getting
Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String'
Tired indeed. It's already decoded. I had e['username'] instead of name so no surprise am getting null as reply.
This is surely something extremely simple that my tired head cannot just wrap itself around at the moment but how to parse the response?
If I try to access e['name'] for example directly I get nothing. If I try to json.decode(e) I'm getting
Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'String'