parseList<T> method
Implementation
List<T> parseList<T>(String key,
[T Function(Map<String, dynamic> map)? parser]) {
try {
return this?[key]?.map<T>((x) => parser?.call(x) ?? x as T)?.toList() ??
[];
} catch (e) {
debugPrint(e.toString());
return [];
}
}