toList method

List toList()

Implementation

List<dynamic> toList() {
  return data.map((item) {
    if (item is VoltronMap) {
      return item.toMap();
    } else if (item is VoltronArray) {
      return item.toList();
    }
    return item;
  }).toList();
}