fromList static method
Implementation
static List fromList(String data) {
if (data.isEmptyJson) {
return [];
}
try {
var objList = json.decode(data);
if (objList is! List) {
return [];
}
return objList;
} catch (e) {
return [];
}
}