public function parse($badge)
    {
        if (isset($badge['badgeIndex'])) {
            $this->setBadgeIndex($badge['badgeIndex']);
        }
        $this->setCode($badge['code']);
        $this->setName($badge['name']);
        $this->setDescription($badge['description']);
    }