public static Storage createStorage(JSONObject data) throws JSONException {
		switch (convertType(data.getString("type"))) {
			case Dir:
				return new net.elbandi.pve2api.data.storage.Dir(data);
			case Nfs:
				return new net.elbandi.pve2api.data.storage.Nfs(data);
			case Lvm:
				return new net.elbandi.pve2api.data.storage.Lvm(data);
			case Iscsi:
				return new net.elbandi.pve2api.data.storage.Iscsi(data);
			default:
				return new Storage(data);
		}
	}