123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874 |
- import 'notification.m.dart';
- import 'package:fis_jsonrpc/utils.dart';
- class DeployPlatServerInfoDTO extends BaseDTO{
- String? id;
- String? serverID;
- String? ip;
- String? name;
- bool isMaster;
- String? masterServerId;
- String? logs;
- String? remoteServerIp;
- DeployPlatServerInfoDTO({
- this.id,
- this.serverID,
- this.ip,
- this.name,
- this.isMaster = false,
- this.masterServerId,
- this.logs,
- this.remoteServerIp,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory DeployPlatServerInfoDTO.fromJson(Map<String, dynamic> map) {
- return DeployPlatServerInfoDTO(
- id: map['Id'],
- serverID: map['ServerID'],
- ip: map['Ip'],
- name: map['Name'],
- isMaster: map['IsMaster'],
- masterServerId: map['MasterServerId'],
- logs: map['Logs'],
- remoteServerIp: map['RemoteServerIp'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (id != null)
- map['Id'] = id;
- if (serverID != null)
- map['ServerID'] = serverID;
- if (ip != null)
- map['Ip'] = ip;
- if (name != null)
- map['Name'] = name;
- map['IsMaster'] = isMaster;
- if (masterServerId != null)
- map['MasterServerId'] = masterServerId;
- if (logs != null)
- map['Logs'] = logs;
- if (remoteServerIp != null)
- map['RemoteServerIp'] = remoteServerIp;
- return map;
- }
- }
- class AddServerRequest {
- String? serverID;
- String? ip;
- String? name;
- bool isMaster;
- String? masterServerId;
- String? remoteServerIp;
- AddServerRequest({
- this.serverID,
- this.ip,
- this.name,
- this.isMaster = false,
- this.masterServerId,
- this.remoteServerIp,
- });
- factory AddServerRequest.fromJson(Map<String, dynamic> map) {
- return AddServerRequest(
- serverID: map['ServerID'],
- ip: map['Ip'],
- name: map['Name'],
- isMaster: map['IsMaster'],
- masterServerId: map['MasterServerId'],
- remoteServerIp: map['RemoteServerIp'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (serverID != null) {
- map['ServerID'] = serverID;
- }
- if (ip != null) {
- map['Ip'] = ip;
- }
- if (name != null) {
- map['Name'] = name;
- }
- map['IsMaster'] = isMaster;
- if (masterServerId != null) {
- map['MasterServerId'] = masterServerId;
- }
- if (remoteServerIp != null) {
- map['RemoteServerIp'] = remoteServerIp;
- }
- return map;
- }
- }
- class UpdateServerRequest {
- String? id;
- String? serverID;
- String? ip;
- String? name;
- bool isMaster;
- String? masterServerId;
- String? remoteServerIp;
- UpdateServerRequest({
- this.id,
- this.serverID,
- this.ip,
- this.name,
- this.isMaster = false,
- this.masterServerId,
- this.remoteServerIp,
- });
- factory UpdateServerRequest.fromJson(Map<String, dynamic> map) {
- return UpdateServerRequest(
- id: map['Id'],
- serverID: map['ServerID'],
- ip: map['Ip'],
- name: map['Name'],
- isMaster: map['IsMaster'],
- masterServerId: map['MasterServerId'],
- remoteServerIp: map['RemoteServerIp'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- if (serverID != null) {
- map['ServerID'] = serverID;
- }
- if (ip != null) {
- map['Ip'] = ip;
- }
- if (name != null) {
- map['Name'] = name;
- }
- map['IsMaster'] = isMaster;
- if (masterServerId != null) {
- map['MasterServerId'] = masterServerId;
- }
- if (remoteServerIp != null) {
- map['RemoteServerIp'] = remoteServerIp;
- }
- return map;
- }
- }
- class SaveLogsRequest {
- String? id;
- String? logs;
- SaveLogsRequest({
- this.id,
- this.logs,
- });
- factory SaveLogsRequest.fromJson(Map<String, dynamic> map) {
- return SaveLogsRequest(
- id: map['Id'],
- logs: map['Logs'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- if (logs != null) {
- map['Logs'] = logs;
- }
- return map;
- }
- }
- class GetServerRequest {
- String? id;
- GetServerRequest({
- this.id,
- });
- factory GetServerRequest.fromJson(Map<String, dynamic> map) {
- return GetServerRequest(
- id: map['Id'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- return map;
- }
- }
- enum DeployPlatOperatorStatusEnum {
- Inactive,
- Active,
- }
- class DeployPlatOperatorDTO extends BaseDTO{
- String? id;
- String? name;
- DeployPlatOperatorStatusEnum status;
- DeployPlatOperatorDTO({
- this.id,
- this.name,
- this.status = DeployPlatOperatorStatusEnum.Inactive,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory DeployPlatOperatorDTO.fromJson(Map<String, dynamic> map) {
- return DeployPlatOperatorDTO(
- id: map['Id'],
- name: map['Name'],
- status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (id != null)
- map['Id'] = id;
- if (name != null)
- map['Name'] = name;
- map['Status'] = status.index;
- return map;
- }
- }
- enum DeployDeviceEnum {
- PC,
- Android,
- Mac,
- }
- class DeployRecordUpgradeInfoDTO extends BaseDTO{
- String? id;
- DeployDeviceEnum deviceType;
- String? language;
- String? describe;
- DeployRecordUpgradeInfoDTO({
- this.id,
- this.deviceType = DeployDeviceEnum.PC,
- this.language,
- this.describe,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory DeployRecordUpgradeInfoDTO.fromJson(Map<String, dynamic> map) {
- return DeployRecordUpgradeInfoDTO(
- id: map['Id'],
- deviceType: DeployDeviceEnum.values.firstWhere((e) => e.index == map['DeviceType']),
- language: map['Language'],
- describe: map['Describe'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (id != null)
- map['Id'] = id;
- map['DeviceType'] = deviceType.index;
- if (language != null)
- map['Language'] = language;
- if (describe != null)
- map['Describe'] = describe;
- return map;
- }
- }
- class DeployRecordInfoDTO extends BaseDTO{
- String? id;
- String? version;
- String? releasedBy;
- String? internalRecord;
- bool inProcess;
- String? generatePackageJson;
- String? packageLogs;
- DateTime? lastPackageTime;
- List<DeployRecordUpgradeInfoDTO>? upgradeInfos;
- String? deployToolDownloadUrl;
- String? ugradeFilesDownloadUrl;
- DeployRecordInfoDTO({
- this.id,
- this.version,
- this.releasedBy,
- this.internalRecord,
- this.inProcess = false,
- this.generatePackageJson,
- this.packageLogs,
- this.lastPackageTime,
- this.upgradeInfos,
- this.deployToolDownloadUrl,
- this.ugradeFilesDownloadUrl,
- DateTime? createTime,
- DateTime? updateTime,
- }) : super(
- createTime: createTime,
- updateTime: updateTime,
- );
- factory DeployRecordInfoDTO.fromJson(Map<String, dynamic> map) {
- return DeployRecordInfoDTO(
- id: map['Id'],
- version: map['Version'],
- releasedBy: map['ReleasedBy'],
- internalRecord: map['InternalRecord'],
- inProcess: map['InProcess'],
- generatePackageJson: map['GeneratePackageJson'],
- packageLogs: map['PackageLogs'],
- lastPackageTime: map['LastPackageTime'] != null ? DateTime.parse(map['LastPackageTime']) : null,
- upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- deployToolDownloadUrl: map['DeployToolDownloadUrl'],
- ugradeFilesDownloadUrl: map['UgradeFilesDownloadUrl'],
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = super.toJson();
- if (id != null)
- map['Id'] = id;
- if (version != null)
- map['Version'] = version;
- if (releasedBy != null)
- map['ReleasedBy'] = releasedBy;
- if (internalRecord != null)
- map['InternalRecord'] = internalRecord;
- map['InProcess'] = inProcess;
- if (generatePackageJson != null)
- map['GeneratePackageJson'] = generatePackageJson;
- if (packageLogs != null)
- map['PackageLogs'] = packageLogs;
- if (lastPackageTime != null)
- map['LastPackageTime'] = JsonRpcUtils.dateFormat(lastPackageTime!);
- if (upgradeInfos != null)
- map['UpgradeInfos'] = upgradeInfos;
- if (deployToolDownloadUrl != null)
- map['DeployToolDownloadUrl'] = deployToolDownloadUrl;
- if (ugradeFilesDownloadUrl != null)
- map['UgradeFilesDownloadUrl'] = ugradeFilesDownloadUrl;
- return map;
- }
- }
- class GetDeployRecordRequest {
- int deployYear;
- GetDeployRecordRequest({
- this.deployYear = 0,
- });
- factory GetDeployRecordRequest.fromJson(Map<String, dynamic> map) {
- return GetDeployRecordRequest(
- deployYear: map['DeployYear'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['DeployYear'] = deployYear;
- return map;
- }
- }
- class SaveDeployRecordRequest {
- String? id;
- String? version;
- String? releasedBy;
- String? internalRecord;
- List<DeployRecordUpgradeInfoDTO>? upgradeInfos;
- SaveDeployRecordRequest({
- this.id,
- this.version,
- this.releasedBy,
- this.internalRecord,
- this.upgradeInfos,
- });
- factory SaveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
- return SaveDeployRecordRequest(
- id: map['Id'],
- version: map['Version'],
- releasedBy: map['ReleasedBy'],
- internalRecord: map['InternalRecord'],
- upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- if (version != null) {
- map['Version'] = version;
- }
- if (releasedBy != null) {
- map['ReleasedBy'] = releasedBy;
- }
- if (internalRecord != null) {
- map['InternalRecord'] = internalRecord;
- }
- if (upgradeInfos != null) {
- map['UpgradeInfos'] = upgradeInfos;
- }
- return map;
- }
- }
- class RemoveDeployRecordRequest {
- String? id;
- RemoveDeployRecordRequest({
- this.id,
- });
- factory RemoveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
- return RemoveDeployRecordRequest(
- id: map['Id'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- return map;
- }
- }
- class AddDeployPlatOperatorRequest {
- String? name;
- DeployPlatOperatorStatusEnum status;
- AddDeployPlatOperatorRequest({
- this.name,
- this.status = DeployPlatOperatorStatusEnum.Inactive,
- });
- factory AddDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
- return AddDeployPlatOperatorRequest(
- name: map['Name'],
- status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (name != null) {
- map['Name'] = name;
- }
- map['Status'] = status.index;
- return map;
- }
- }
- class ModifyDeployPlatOperatorRequest {
- String? id;
- String? name;
- DeployPlatOperatorStatusEnum status;
- ModifyDeployPlatOperatorRequest({
- this.id,
- this.name,
- this.status = DeployPlatOperatorStatusEnum.Inactive,
- });
- factory ModifyDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
- return ModifyDeployPlatOperatorRequest(
- id: map['Id'],
- name: map['Name'],
- status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- if (name != null) {
- map['Name'] = name;
- }
- map['Status'] = status.index;
- return map;
- }
- }
- class DeleteDeployPlatOperatorRequest {
- String? id;
- DeleteDeployPlatOperatorRequest({
- this.id,
- });
- factory DeleteDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
- return DeleteDeployPlatOperatorRequest(
- id: map['Id'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (id != null) {
- map['Id'] = id;
- }
- return map;
- }
- }
- enum DeployPlatLoginResultEnum {
- Ok,
- WrongAccountName,
- WrongPassword,
- AccountInActive,
- Unknown,
- }
- class OperatorLoginRequest {
- String? name;
- String? password;
- OperatorLoginRequest({
- this.name,
- this.password,
- });
- factory OperatorLoginRequest.fromJson(Map<String, dynamic> map) {
- return OperatorLoginRequest(
- name: map['Name'],
- password: map['Password'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (name != null) {
- map['Name'] = name;
- }
- if (password != null) {
- map['Password'] = password;
- }
- return map;
- }
- }
- class FindTextWithUrlAndPrefixRequest {
- String? url;
- String? prefix;
- FindTextWithUrlAndPrefixRequest({
- this.url,
- this.prefix,
- });
- factory FindTextWithUrlAndPrefixRequest.fromJson(Map<String, dynamic> map) {
- return FindTextWithUrlAndPrefixRequest(
- url: map['Url'],
- prefix: map['Prefix'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (url != null) {
- map['Url'] = url;
- }
- if (prefix != null) {
- map['Prefix'] = prefix;
- }
- return map;
- }
- }
- class GeneratePackageRequest {
- String? deployRecordId;
- bool isCreateDeployTool;
- bool isIncludeLocalPackage;
- bool isServerSelected;
- bool isPCClientSelected;
- bool isAndroidClientSelected;
- bool isSonoPostSelected;
- bool isWindowsFISSDKSelected;
- String? selectedServerZipUrl;
- String? selectedPCClientZipUrl;
- String? selectedAndroidClientZipUrl;
- String? selectedSonoPostZipUrl;
- String? selectedWindowsFISSDKZipUrl;
- String? language;
- GeneratePackageRequest({
- this.deployRecordId,
- this.isCreateDeployTool = false,
- this.isIncludeLocalPackage = false,
- this.isServerSelected = false,
- this.isPCClientSelected = false,
- this.isAndroidClientSelected = false,
- this.isSonoPostSelected = false,
- this.isWindowsFISSDKSelected = false,
- this.selectedServerZipUrl,
- this.selectedPCClientZipUrl,
- this.selectedAndroidClientZipUrl,
- this.selectedSonoPostZipUrl,
- this.selectedWindowsFISSDKZipUrl,
- this.language,
- });
- factory GeneratePackageRequest.fromJson(Map<String, dynamic> map) {
- return GeneratePackageRequest(
- deployRecordId: map['DeployRecordId'],
- isCreateDeployTool: map['IsCreateDeployTool'],
- isIncludeLocalPackage: map['IsIncludeLocalPackage'],
- isServerSelected: map['IsServerSelected'],
- isPCClientSelected: map['IsPCClientSelected'],
- isAndroidClientSelected: map['IsAndroidClientSelected'],
- isSonoPostSelected: map['IsSonoPostSelected'],
- isWindowsFISSDKSelected: map['IsWindowsFISSDKSelected'],
- selectedServerZipUrl: map['SelectedServerZipUrl'],
- selectedPCClientZipUrl: map['SelectedPCClientZipUrl'],
- selectedAndroidClientZipUrl: map['SelectedAndroidClientZipUrl'],
- selectedSonoPostZipUrl: map['SelectedSonoPostZipUrl'],
- selectedWindowsFISSDKZipUrl: map['SelectedWindowsFISSDKZipUrl'],
- language: map['Language'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (deployRecordId != null) {
- map['DeployRecordId'] = deployRecordId;
- }
- map['IsCreateDeployTool'] = isCreateDeployTool;
- map['IsIncludeLocalPackage'] = isIncludeLocalPackage;
- map['IsServerSelected'] = isServerSelected;
- map['IsPCClientSelected'] = isPCClientSelected;
- map['IsAndroidClientSelected'] = isAndroidClientSelected;
- map['IsSonoPostSelected'] = isSonoPostSelected;
- map['IsWindowsFISSDKSelected'] = isWindowsFISSDKSelected;
- if (selectedServerZipUrl != null) {
- map['SelectedServerZipUrl'] = selectedServerZipUrl;
- }
- if (selectedPCClientZipUrl != null) {
- map['SelectedPCClientZipUrl'] = selectedPCClientZipUrl;
- }
- if (selectedAndroidClientZipUrl != null) {
- map['SelectedAndroidClientZipUrl'] = selectedAndroidClientZipUrl;
- }
- if (selectedSonoPostZipUrl != null) {
- map['SelectedSonoPostZipUrl'] = selectedSonoPostZipUrl;
- }
- if (selectedWindowsFISSDKZipUrl != null) {
- map['SelectedWindowsFISSDKZipUrl'] = selectedWindowsFISSDKZipUrl;
- }
- if (language != null) {
- map['Language'] = language;
- }
- return map;
- }
- }
- class UploadTotargetServerRequest {
- String? serverInfoId;
- String? recordId;
- UploadTotargetServerRequest({
- this.serverInfoId,
- this.recordId,
- });
- factory UploadTotargetServerRequest.fromJson(Map<String, dynamic> map) {
- return UploadTotargetServerRequest(
- serverInfoId: map['ServerInfoId'],
- recordId: map['RecordId'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (serverInfoId != null) {
- map['ServerInfoId'] = serverInfoId;
- }
- if (recordId != null) {
- map['RecordId'] = recordId;
- }
- return map;
- }
- }
- class GetPackageRequest {
- String? deployRecordId;
- GetPackageRequest({
- this.deployRecordId,
- });
- factory GetPackageRequest.fromJson(Map<String, dynamic> map) {
- return GetPackageRequest(
- deployRecordId: map['DeployRecordId'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (deployRecordId != null) {
- map['DeployRecordId'] = deployRecordId;
- }
- return map;
- }
- }
- class CancelPackagingRequest {
- String? deployRecordId;
- CancelPackagingRequest({
- this.deployRecordId,
- });
- factory CancelPackagingRequest.fromJson(Map<String, dynamic> map) {
- return CancelPackagingRequest(
- deployRecordId: map['DeployRecordId'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- if (deployRecordId != null) {
- map['DeployRecordId'] = deployRecordId;
- }
- return map;
- }
- }
- class ReadAppSettingsJsonRequest {
- int settingType;
- ReadAppSettingsJsonRequest({
- this.settingType = 0,
- });
- factory ReadAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
- return ReadAppSettingsJsonRequest(
- settingType: map['SettingType'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SettingType'] = settingType;
- return map;
- }
- }
- class ModifyAppSettingsJsonRequest {
- int settingType;
- String? json;
- ModifyAppSettingsJsonRequest({
- this.settingType = 0,
- this.json,
- });
- factory ModifyAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
- return ModifyAppSettingsJsonRequest(
- settingType: map['SettingType'],
- json: map['Json'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['SettingType'] = settingType;
- if (json != null) {
- map['Json'] = json;
- }
- return map;
- }
- }
- class DeployRequest {
- bool isUpgradeServer;
- String? serverZipUrl;
- bool isUpgradeClient;
- String? openWebUrl;
- String? clientWebUrl;
- String? upgradeSettings;
- DeployRequest({
- this.isUpgradeServer = false,
- this.serverZipUrl,
- this.isUpgradeClient = false,
- this.openWebUrl,
- this.clientWebUrl,
- this.upgradeSettings,
- });
- factory DeployRequest.fromJson(Map<String, dynamic> map) {
- return DeployRequest(
- isUpgradeServer: map['IsUpgradeServer'],
- serverZipUrl: map['ServerZipUrl'],
- isUpgradeClient: map['IsUpgradeClient'],
- openWebUrl: map['OpenWebUrl'],
- clientWebUrl: map['ClientWebUrl'],
- upgradeSettings: map['UpgradeSettings'],
- );
- }
- Map<String, dynamic> toJson() {
- final map = Map<String, dynamic>();
- map['IsUpgradeServer'] = isUpgradeServer;
- if (serverZipUrl != null) {
- map['ServerZipUrl'] = serverZipUrl;
- }
- map['IsUpgradeClient'] = isUpgradeClient;
- if (openWebUrl != null) {
- map['OpenWebUrl'] = openWebUrl;
- }
- if (clientWebUrl != null) {
- map['ClientWebUrl'] = clientWebUrl;
- }
- if (upgradeSettings != null) {
- map['UpgradeSettings'] = upgradeSettings;
- }
- return map;
- }
- }
|