fromDynamicList static method
Helper function to create a list
of dynamic objects given a builder
that can build a single object.
Implementation
static List<JsonWidgetData> fromDynamicList(
dynamic list, {
JsonWidgetRegistry? registry,
}) {
final result = maybeFromDynamicList(list, registry: registry);
if (result == null) {
throw Exception(
'[JsonWidgetData]: requested to parse from dynamic list, but the input is null.',
);
}
return result;
}