toDeepList method

List toDeepList()

Implementation

List toDeepList() {
  var l = [];
  for (var element in this) {
    if (element is Map) {
      l.add(element.toDeepMap());
    } else if (element is List) {
      l.add(element.toDeepList());
    } else if (element is VoltronMap) {
      l.add(element.toMap());
    } else if (element is VoltronArray) {
      l.add(element.toList());
    } else {
      l.add(element);
    }
  }
  return l;
}