listFromJson<T> function

List<T>? listFromJson<T>(
  1. List? list,
  2. T fromJson(
    1. Map<String, dynamic> json
    )
)

Implementation

List<T>? listFromJson<T>(
        List<dynamic>? list, T Function(Map<String, dynamic> json) fromJson) =>
    list?.map((e) => fromJson(e)).toList();