parseList<T> function
Implementation
List<T>? parseList<T>(dynamic values, T Function(dynamic) fromJson) {
if (values == null) {
return null;
}
Iterable<dynamic> list = values;
return list.map<T>((value) => fromJson(value)).toList();
}