Why String can't decode back to Map after change to String?
FirebaseMessaging.onMessage.listen((RemoteMessage message) { print(message.data); var convertToString = (message.data).toString(); var map = jsonDecode(convertToString); });Error
E/flutter (17220): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: FormatException: Unexpected character (at character 2) E/flutter (17220): {notification_type: abc, ABC: {"assigned_to_id":null,"descri...
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/c551e467-210b-4fa8-8a40-fba61b3cf224n%40googlegroups.com.