whereIn method
Filters items where a field value is in a list of values
Example:
final result = response.whereIn('status', ['active', 'pending']);
field The field name to check
values List of allowed values
Implementation
PaginatedModel<T> whereIn(String field, List<dynamic> values) {
return where((item) {
final map = item.toJson();
return values.contains(map[field]);
});
}