fromJson method
Implementation
@override
@nonVirtual
List<T> fromJson(List<dynamic> json) {
final res = <T>[];
var i = 0;
for (final item in json) {
if (item is! S)
throw FormatException(
"Each item in the json list must be of type '$S', but there is one "
"of type '${item.runtimeType}'",
json,
i,
);
res.add(singleFromJson(item));
i++;
}
return res;
}