toDeepVoltronMap method

VoltronMap toDeepVoltronMap()

ensure deep to Voltron

Implementation

VoltronMap toDeepVoltronMap() {
  var voltronMap = VoltronMap();
  for (final entry in entrySet()) {
    if (entry.value is Map) {
      voltronMap.push(entry.key, (entry.value as Map).toVoltronMap());
    } else if (entry.value is List) {
      voltronMap.push(entry.key, (entry.value as List).toVoltronArray());
    } else if (entry.value is VoltronMap) {
      voltronMap.push(entry.key, (entry.value as VoltronMap).toDeepVoltronMap());
    } else if (entry.value is VoltronArray) {
      voltronMap.push(entry.key, (entry.value as VoltronArray).toDeepVoltronArray());
    } else {
      voltronMap.push(entry.key, entry.value);
    }
  }
  return voltronMap;
}