#include "information.h" Information::Information(QString version, QString apiVersion, QString goVersion, QString osName, QString osArchitecture) { this->_version = version; this->_apiVersion = apiVersion; this->_goVersion = goVersion; this->_osName = osName; this->_osArchitecture = osArchitecture; } Information::Information(QJsonObject obj) { this->_version = obj["version"].toString(); this->_apiVersion = obj["api_version"].toString(); this->_goVersion = obj["go_version"].toString(); this->_osName = obj["os_name"].toString(); this->_osArchitecture = obj["os_architecture"].toString(); }