tryParseJson property

Map<String, dynamic> get tryParseJson

尝试解析json-> Map

Implementation

Map<String, dynamic> get tryParseJson {
  try {
    return jsonDecode(json);
  } catch (e) {
    return <String, dynamic>{};
  }
}