public function createRta(RtaServices $rtaSer, $keyElement = null, array $fields = null){
        if($rtaSer->auth === false){
            $this->code= 401;
        }else if(!$rtaSer->isOk()){
            $this->code= 400;
        }
        $this->body= $rtaSer->toArray();
        if($keyElement){
            if($rtaSer->getParam($keyElement) != NULL){
                $jsonHelper= new JsonHelper();
                $this->body[$keyElement]= $jsonHelper->object_to_array($rtaSer->getParam($keyElement), $fields);   
            }
        }
    }