public function GetFileType($dataPost) {
        $templateTypeKey = "templateType";
        if (!array_key_exists($templateTypeKey, $dataPost)) {
            throw new \Exception("The POST data doesn't contain the value $templateTypeKey. See dump" . var_dump($dataPost), 0, null);
        }

        $this->templateType = $dataPost[$templateTypeKey];
        return $this;
    }