items<T> method
When this value itself is a list: each item read with parse.
Implementation
List<T> items<T>(T Function(Json json) parse) {
final value = raw;
if (value is! List) {
if (value != null) _reportSelf('expected a list');
return const [];
}
return [
for (var i = 0; i < value.length; i++)
if (value[i] is Map) parse(Json._(value[i], '$path[$i]')),
];
}