fromListJson static method

List<Text> fromListJson(
  1. List json
)

Map a list of texts from a json list with dynamics.

Implementation

static List<Text> fromListJson(List<dynamic> json) {
  List<Text> texts = [];
  json.forEach((e) => texts.add(Text.fromJson(e)));
  return texts;
}