fromJSONArray static method
List<Collection>
fromJSONArray(
- dynamic json, {
- LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity,
Creates a list of Collection from its RWPM JSON representation.
The links' href and their children's will be normalized recursively using the
provided normalizeHref
closure.
If a contributor can't be parsed, a warning will be logged with warnings
.
Implementation
static List<Collection> fromJSONArray(dynamic json,
{LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) =>
Contributor.fromJsonArray(json, normalizeHref: normalizeHref)
.map((contributor) => contributor.toCollection())
.toList();