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