toIterable static method

Iterable toIterable(
  1. dynamic object
)

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}.');
  }
}