nullableJsonList<T> static method

List<T>? nullableJsonList<T>(
  1. dynamic json,
  2. T fromJson(
    1. dynamic
    )
)

Implementation

static List<T>? nullableJsonList<T>(
        dynamic json, T Function(dynamic) fromJson) =>
    json != null ? (json as List).map((e) => fromJson(e)).toList() : null;