kakajansh / echo

Laravel Echo for your Flutter apps.
MIT License
108 stars 69 forks source link

How to parse the echo response #12

Closed Luppakorva closed 4 years ago

Luppakorva commented 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'

Luppakorva commented 4 years ago

Tired indeed. It's already decoded. I had e['username'] instead of name so no surprise am getting null as reply.