public static function create($params = array())
    {
        if (isset($params['type'])) {
            $className = "Didww\API2\Mapping\\" . $params['type'];
            $mapping = new $className();
            unset($params['type']);
        } else {
            $mapping = new Mapping();
        }
        $mapping->fromArray($params);

        return $mapping;
    }