protected function getEventTypes(?string $data = null): array
    {
        $result = [];

        if (empty($data)) {
            return $result;
        }

        $result = json_decode($data, true);

        return $result;
    }