public function parse($group)
    {
        $this->setId($group['id']);
        $this->setName($group['name']);
        $this->setDescription($group['description']);
        $this->setType($group['type']);
        if (isset($group['primaryColour'])) {
            $this->setPrimaryColour($group['primaryColour']);
        }
        if (isset($group['secondaryColour'])) {
            $this->setSecondaryColour($group['secondaryColour']);
        }
        if (isset($group['badgeCode'])) {
            $this->setBadgeCode($group['badgeCode']);
        }
        if (isset($group['roomId'])) {
            $this->setRoomId($group['roomId']);
        }
        if (isset($group['isAdmin'])) {
            $this->setIsAdmin($group['isAdmin']);
        }
    }