fromDecodedJsonList static method

List<DownloadItem> fromDecodedJsonList(
  1. dynamic decodedJson
)

Implementation

static List<DownloadItem> fromDecodedJsonList(dynamic decodedJson) {
  if (decodedJson == null) return [];

  return List<DownloadItem>.from(
    (decodedJson as List).map(
          (e) => DownloadItem.fromJson(e),
    ),
  );
}