那不可能
如果您可以将字符串更改为有效的JSON,则可以使用
import 'dart:convert';...Map valueMap = json.depre(value);
该字符串需要看起来像
{"first_name" : "fname","last_name" : "lname","gender" : "male", "location" : { "state" : "state", "country" : "country", "place" : "place"} }
那不可能
如果您可以将字符串更改为有效的JSON,则可以使用
import 'dart:convert';...Map valueMap = json.depre(value);
该字符串需要看起来像
{"first_name" : "fname","last_name" : "lname","gender" : "male", "location" : { "state" : "state", "country" : "country", "place" : "place"} }