List<dynamic> transactionFilter( List<dynamic> data, ) { var result = data.where((m) => m['transactionType'] == 'Debit'); // return json list where isHidden == false return result.toList(); }