This should be `newFromJsonArray` as PHP doesn't have Dictionaries. I'm not sure I like the buildResult method, as I've been using array_map and anonymous functions for most of this already. The ones that were left were the ones I couldn't be bothered to convert on the last run.