#ifndef MODELINFO_H
#define MODELINFO_H

#include <QObject>
#include "QJsonObject"
#include "QJsonArray"
#include <QSharedPointer>

//struct BoxModel{

//    QString ModelName;

//    QString text1_1;  //text输入框第一行第一排
//    QString text2_1;
//    QString text3_1;
//    QString text4_1;
//    QString text5_1;
//    QString text1_2;    //text输入框第一行第二排
//    QString text2_2;
//    QString text3_2;
//    QString text4_2;
//    QString text5_2;

//    QString data1_1;  //下拉选框第一行第一排
//    QString data2_1;
//    QString data3_1;
//    QString data4_1;
//    QString data5_1;
//    QString data1_2;    //下拉选框第一行第二排
//    QString data2_2;
//    QString data3_2;
//    QString data4_2;
//    QString data5_2;

//    QJsonObject toObject();
//    static QSharedPointer<BoxModel> fromObject(QJsonObject &obj);
//};

struct BoxModel{
    QString baseModel_Name;

    QString Model_Name;

    QJsonArray Type_Name;
    QJsonArray Type_Data;

    QJsonObject toObject();
    static QSharedPointer<BoxModel> fromObject(QJsonObject &obj);
};

struct PackModel{

    QString BaseModel_Name;
    QString Model_Name;

    QJsonArray Type_Name;
    QJsonArray Type_Data;

    QJsonObject toObject();
    static QSharedPointer<PackModel> fromObject(QJsonObject &obj);

};

class ModelInfo
{
public:
    ModelInfo();
};

#endif // MODELINFO_H
