mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-28 16:58:41 +01:00
7 lines
217 B
Dart
7 lines
217 B
Dart
List<T> parseListNotNull<T extends Object?>({
|
|
required List<dynamic> json,
|
|
required T Function(Map<String, dynamic> json) fromJson,
|
|
}) {
|
|
return (json).map((e) => fromJson(e as Map<String, dynamic>)).toList();
|
|
}
|