Deep-copies a given json map
Map<String, Object?> copy() { final copy = Map<String, Object?>.from(this); for (final entry in copy.entries) { copy[entry.key] = _copyValue(entry.value); } return copy; }