toIterable method
Returns either the underlying parsed data as an iterable list (if the underlying data contains a list), or returns the map.values (if the underlying data contains a map).
Implementation
Iterable<dynamic>? toIterable() {
if (_objectData is Iterable) {
return _objectData;
}
return _objectData.values;
}