String xmlStrToJsonStr(String xml) { final Xml2Json xml2json = Xml2Json()..parse(xml); return xml2json.toGData().replaceAll("\$t", "value"); }