`AsDictionary()` might be a better name here, since this is really just converting the sub tree from a list of key-value pairs to a dictionary.