toDeepMap method

Map toDeepMap()

Implementation

Map toDeepMap() {
  var m = {};
  for (var key in keys) {
    var value = this[key];
    if (value is Map) {
      m[key] = value.toDeepMap();
    } else if (value is List) {
      m[key] = value.toDeepList();
    } else if (value is VoltronMap) {
      m[key] = value.toMap();
    } else if (value is VoltronArray) {
      m[key] = value.toList();
    } else {
      m[key] = value;
    }
  }
  return m;
}