toIterable static method
Implementation
static Iterable<dynamic> toIterable(dynamic object) {
var value = toValue(object);
if (value is Iterable<dynamic>) {
return value;
} else {
throw MapperException('Cannot encode value of type ${object.runtimeType} to Iterable. Instead encoded to type ${value.runtimeType}.');
}
}