getFlowList static method
Implementation
static List<DashboardItem> getFlowList(Map<String, dynamic>? json) {
List<DashboardItem> flowList = [];
if (json != null &&
json.runtimeType != Null &&
json.toString() != 'null' &&
json.containsKey('flows') &&
json['flows'] != null) {
var flowData = json['flows'] as List;
flowData.forEach((element) {
flowList.add(DashboardItem.fromJson(element));
});
}
return flowList;
}