decodeList<T> function
Implementation
List<T> decodeList<T>(dynamic raw, T Function(dynamic) decoder) {
if (raw is List) {
return raw.whereNotNull.map(decoder).toList();
} else {
return [];
}
}
List<T> decodeList<T>(dynamic raw, T Function(dynamic) decoder) {
if (raw is List) {
return raw.whereNotNull.map(decoder).toList();
} else {
return [];
}
}