fromJson static method

Map<String, dynamic> fromJson(
  1. String data
)

Implementation

static Map<String, dynamic> fromJson(String data) {
  if (data.isEmptyJson) {
    return {};
  }
  try {
    return json.decode(data);
  } catch (e) {
    Logger.instance.error(e);
    return {};
  }
}