How to convert JavaScript object to Dart Map?

后端 未结 5 614
梦毁少年i
梦毁少年i 2021-01-04 02:24

I am looking for some reverse of new JsObject.jsify. Something, that would convert javascript Object back to Dart Map Is there somethi

5条回答
  •  礼貌的吻别
    2021-01-04 02:37

    All of the above answers didn't work for me.

    matanlurey provided a solution which seems more up to date and actually worked for me (Dart SDK 1.24.0), here:

    https://stackoverflow.com/a/41291503/5280562

    It's very similar in a nutshell but uses the new package:js instead of dart:js.

提交回复
热议问题