var._dupObjectMap

private var[string] _dupObjectMap() const @safe

Build a fresh mutable map whose values are deep copies of the stored OBJECT payload.

Used by the var[string] extraction APIs (as / tryAs): a shallow AA duplicate with its transitive constness cast away would alias nested containers and native buffers behind mutable references, letting @safe callers mutate const/immutable payloads through the result. Every value therefore goes through the qualified deep-copy path (dup).

Returns

A new mutable var[string] whose values are independent copies.