public function getJsonServiceSegments(bool $pretty = false)
    {
        if ($pretty) {
            return \json_encode($this->serviceSeg, JSON_PRETTY_PRINT);
        }

        return \json_encode($this->serviceSeg);
    }