List<dynamic>? awaitingApprovalStatus(List<dynamic>? data) { if (data == null) { return []; } return data .where((element) => element['status'] == 'AwaitingApproval') .toList(); }