listOfListsFromJsonArray static method

List<List<PhotoSize>> listOfListsFromJsonArray(
  1. List<List> json
)

Creates a list of list of object from a json array

Implementation

static List<List<PhotoSize>> listOfListsFromJsonArray(
  List<List<dynamic>> json,
) {
  return List.generate(
    json.length,
    (e) => List.generate(
      json[e].length,
      (i) => PhotoSize.fromJson(json[e][i]),
    ),
  );
}