toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  var ret = <String, dynamic>{};
  for (final entry in entrySet()) {
    if (entry.value is VoltronMap) {
      ret[entry.key] = (entry.value as VoltronMap).toMap();
    } else if (entry.value is VoltronArray) {
      ret[entry.key] = (entry.value as VoltronArray).toList();
    } else {
      ret[entry.key] = entry.value;
    }
  }
  return ret;
}