private function process(&$details) {
        foreach ($details as &$value) {
            if (is_array($value)) {
                $this->process($value);
                continue;
            }
            if ($value instanceof \DateTime) {
                $value = $value->format(\DateTime::ISO8601);
                continue;
            }
        }
    }