getFlowList static method

List<DashboardItem> getFlowList(
  1. Map<String, dynamic>? json
)

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;
}