deployPlatform.m.dart 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. import 'notification.m.dart';
  2. import 'package:fis_jsonrpc/utils.dart';
  3. class DeployPlatServerInfoDTO extends BaseDTO{
  4. String? id;
  5. String? serverID;
  6. String? ip;
  7. String? name;
  8. bool isMaster;
  9. String? masterServerId;
  10. String? logs;
  11. String? remoteServerIp;
  12. DeployPlatServerInfoDTO({
  13. this.id,
  14. this.serverID,
  15. this.ip,
  16. this.name,
  17. this.isMaster = false,
  18. this.masterServerId,
  19. this.logs,
  20. this.remoteServerIp,
  21. DateTime? createTime,
  22. DateTime? updateTime,
  23. }) : super(
  24. createTime: createTime,
  25. updateTime: updateTime,
  26. );
  27. factory DeployPlatServerInfoDTO.fromJson(Map<String, dynamic> map) {
  28. return DeployPlatServerInfoDTO(
  29. id: map['Id'],
  30. serverID: map['ServerID'],
  31. ip: map['Ip'],
  32. name: map['Name'],
  33. isMaster: map['IsMaster'],
  34. masterServerId: map['MasterServerId'],
  35. logs: map['Logs'],
  36. remoteServerIp: map['RemoteServerIp'],
  37. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  38. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  39. );
  40. }
  41. Map<String, dynamic> toJson() {
  42. final map = super.toJson();
  43. if (id != null)
  44. map['Id'] = id;
  45. if (serverID != null)
  46. map['ServerID'] = serverID;
  47. if (ip != null)
  48. map['Ip'] = ip;
  49. if (name != null)
  50. map['Name'] = name;
  51. map['IsMaster'] = isMaster;
  52. if (masterServerId != null)
  53. map['MasterServerId'] = masterServerId;
  54. if (logs != null)
  55. map['Logs'] = logs;
  56. if (remoteServerIp != null)
  57. map['RemoteServerIp'] = remoteServerIp;
  58. return map;
  59. }
  60. }
  61. class AddServerRequest {
  62. String? serverID;
  63. String? ip;
  64. String? name;
  65. bool isMaster;
  66. String? masterServerId;
  67. String? remoteServerIp;
  68. AddServerRequest({
  69. this.serverID,
  70. this.ip,
  71. this.name,
  72. this.isMaster = false,
  73. this.masterServerId,
  74. this.remoteServerIp,
  75. });
  76. factory AddServerRequest.fromJson(Map<String, dynamic> map) {
  77. return AddServerRequest(
  78. serverID: map['ServerID'],
  79. ip: map['Ip'],
  80. name: map['Name'],
  81. isMaster: map['IsMaster'],
  82. masterServerId: map['MasterServerId'],
  83. remoteServerIp: map['RemoteServerIp'],
  84. );
  85. }
  86. Map<String, dynamic> toJson() {
  87. final map = Map<String, dynamic>();
  88. if (serverID != null) {
  89. map['ServerID'] = serverID;
  90. }
  91. if (ip != null) {
  92. map['Ip'] = ip;
  93. }
  94. if (name != null) {
  95. map['Name'] = name;
  96. }
  97. map['IsMaster'] = isMaster;
  98. if (masterServerId != null) {
  99. map['MasterServerId'] = masterServerId;
  100. }
  101. if (remoteServerIp != null) {
  102. map['RemoteServerIp'] = remoteServerIp;
  103. }
  104. return map;
  105. }
  106. }
  107. class UpdateServerRequest {
  108. String? id;
  109. String? serverID;
  110. String? ip;
  111. String? name;
  112. bool isMaster;
  113. String? masterServerId;
  114. String? remoteServerIp;
  115. UpdateServerRequest({
  116. this.id,
  117. this.serverID,
  118. this.ip,
  119. this.name,
  120. this.isMaster = false,
  121. this.masterServerId,
  122. this.remoteServerIp,
  123. });
  124. factory UpdateServerRequest.fromJson(Map<String, dynamic> map) {
  125. return UpdateServerRequest(
  126. id: map['Id'],
  127. serverID: map['ServerID'],
  128. ip: map['Ip'],
  129. name: map['Name'],
  130. isMaster: map['IsMaster'],
  131. masterServerId: map['MasterServerId'],
  132. remoteServerIp: map['RemoteServerIp'],
  133. );
  134. }
  135. Map<String, dynamic> toJson() {
  136. final map = Map<String, dynamic>();
  137. if (id != null) {
  138. map['Id'] = id;
  139. }
  140. if (serverID != null) {
  141. map['ServerID'] = serverID;
  142. }
  143. if (ip != null) {
  144. map['Ip'] = ip;
  145. }
  146. if (name != null) {
  147. map['Name'] = name;
  148. }
  149. map['IsMaster'] = isMaster;
  150. if (masterServerId != null) {
  151. map['MasterServerId'] = masterServerId;
  152. }
  153. if (remoteServerIp != null) {
  154. map['RemoteServerIp'] = remoteServerIp;
  155. }
  156. return map;
  157. }
  158. }
  159. class SaveLogsRequest {
  160. String? id;
  161. String? logs;
  162. SaveLogsRequest({
  163. this.id,
  164. this.logs,
  165. });
  166. factory SaveLogsRequest.fromJson(Map<String, dynamic> map) {
  167. return SaveLogsRequest(
  168. id: map['Id'],
  169. logs: map['Logs'],
  170. );
  171. }
  172. Map<String, dynamic> toJson() {
  173. final map = Map<String, dynamic>();
  174. if (id != null) {
  175. map['Id'] = id;
  176. }
  177. if (logs != null) {
  178. map['Logs'] = logs;
  179. }
  180. return map;
  181. }
  182. }
  183. class GetServerRequest {
  184. String? id;
  185. GetServerRequest({
  186. this.id,
  187. });
  188. factory GetServerRequest.fromJson(Map<String, dynamic> map) {
  189. return GetServerRequest(
  190. id: map['Id'],
  191. );
  192. }
  193. Map<String, dynamic> toJson() {
  194. final map = Map<String, dynamic>();
  195. if (id != null) {
  196. map['Id'] = id;
  197. }
  198. return map;
  199. }
  200. }
  201. enum DeployPlatOperatorStatusEnum {
  202. Inactive,
  203. Active,
  204. }
  205. class DeployPlatOperatorDTO extends BaseDTO{
  206. String? id;
  207. String? name;
  208. DeployPlatOperatorStatusEnum status;
  209. DeployPlatOperatorDTO({
  210. this.id,
  211. this.name,
  212. this.status = DeployPlatOperatorStatusEnum.Inactive,
  213. DateTime? createTime,
  214. DateTime? updateTime,
  215. }) : super(
  216. createTime: createTime,
  217. updateTime: updateTime,
  218. );
  219. factory DeployPlatOperatorDTO.fromJson(Map<String, dynamic> map) {
  220. return DeployPlatOperatorDTO(
  221. id: map['Id'],
  222. name: map['Name'],
  223. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  224. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  225. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  226. );
  227. }
  228. Map<String, dynamic> toJson() {
  229. final map = super.toJson();
  230. if (id != null)
  231. map['Id'] = id;
  232. if (name != null)
  233. map['Name'] = name;
  234. map['Status'] = status.index;
  235. return map;
  236. }
  237. }
  238. enum DeployDeviceEnum {
  239. PC,
  240. Android,
  241. Mac,
  242. }
  243. class DeployRecordUpgradeInfoDTO extends BaseDTO{
  244. String? id;
  245. DeployDeviceEnum deviceType;
  246. String? language;
  247. String? describe;
  248. DeployRecordUpgradeInfoDTO({
  249. this.id,
  250. this.deviceType = DeployDeviceEnum.PC,
  251. this.language,
  252. this.describe,
  253. DateTime? createTime,
  254. DateTime? updateTime,
  255. }) : super(
  256. createTime: createTime,
  257. updateTime: updateTime,
  258. );
  259. factory DeployRecordUpgradeInfoDTO.fromJson(Map<String, dynamic> map) {
  260. return DeployRecordUpgradeInfoDTO(
  261. id: map['Id'],
  262. deviceType: DeployDeviceEnum.values.firstWhere((e) => e.index == map['DeviceType']),
  263. language: map['Language'],
  264. describe: map['Describe'],
  265. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  266. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  267. );
  268. }
  269. Map<String, dynamic> toJson() {
  270. final map = super.toJson();
  271. if (id != null)
  272. map['Id'] = id;
  273. map['DeviceType'] = deviceType.index;
  274. if (language != null)
  275. map['Language'] = language;
  276. if (describe != null)
  277. map['Describe'] = describe;
  278. return map;
  279. }
  280. }
  281. class DeployRecordInfoDTO extends BaseDTO{
  282. String? id;
  283. String? version;
  284. String? releasedBy;
  285. String? internalRecord;
  286. bool inProcess;
  287. String? generatePackageJson;
  288. String? packageLogs;
  289. DateTime? lastPackageTime;
  290. List<DeployRecordUpgradeInfoDTO>? upgradeInfos;
  291. String? deployToolDownloadUrl;
  292. String? ugradeFilesDownloadUrl;
  293. DeployRecordInfoDTO({
  294. this.id,
  295. this.version,
  296. this.releasedBy,
  297. this.internalRecord,
  298. this.inProcess = false,
  299. this.generatePackageJson,
  300. this.packageLogs,
  301. this.lastPackageTime,
  302. this.upgradeInfos,
  303. this.deployToolDownloadUrl,
  304. this.ugradeFilesDownloadUrl,
  305. DateTime? createTime,
  306. DateTime? updateTime,
  307. }) : super(
  308. createTime: createTime,
  309. updateTime: updateTime,
  310. );
  311. factory DeployRecordInfoDTO.fromJson(Map<String, dynamic> map) {
  312. return DeployRecordInfoDTO(
  313. id: map['Id'],
  314. version: map['Version'],
  315. releasedBy: map['ReleasedBy'],
  316. internalRecord: map['InternalRecord'],
  317. inProcess: map['InProcess'],
  318. generatePackageJson: map['GeneratePackageJson'],
  319. packageLogs: map['PackageLogs'],
  320. lastPackageTime: map['LastPackageTime'] != null ? DateTime.parse(map['LastPackageTime']) : null,
  321. upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  322. deployToolDownloadUrl: map['DeployToolDownloadUrl'],
  323. ugradeFilesDownloadUrl: map['UgradeFilesDownloadUrl'],
  324. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  325. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  326. );
  327. }
  328. Map<String, dynamic> toJson() {
  329. final map = super.toJson();
  330. if (id != null)
  331. map['Id'] = id;
  332. if (version != null)
  333. map['Version'] = version;
  334. if (releasedBy != null)
  335. map['ReleasedBy'] = releasedBy;
  336. if (internalRecord != null)
  337. map['InternalRecord'] = internalRecord;
  338. map['InProcess'] = inProcess;
  339. if (generatePackageJson != null)
  340. map['GeneratePackageJson'] = generatePackageJson;
  341. if (packageLogs != null)
  342. map['PackageLogs'] = packageLogs;
  343. if (lastPackageTime != null)
  344. map['LastPackageTime'] = JsonRpcUtils.dateFormat(lastPackageTime!);
  345. if (upgradeInfos != null)
  346. map['UpgradeInfos'] = upgradeInfos;
  347. if (deployToolDownloadUrl != null)
  348. map['DeployToolDownloadUrl'] = deployToolDownloadUrl;
  349. if (ugradeFilesDownloadUrl != null)
  350. map['UgradeFilesDownloadUrl'] = ugradeFilesDownloadUrl;
  351. return map;
  352. }
  353. }
  354. class GetDeployRecordRequest {
  355. int deployYear;
  356. GetDeployRecordRequest({
  357. this.deployYear = 0,
  358. });
  359. factory GetDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  360. return GetDeployRecordRequest(
  361. deployYear: map['DeployYear'],
  362. );
  363. }
  364. Map<String, dynamic> toJson() {
  365. final map = Map<String, dynamic>();
  366. map['DeployYear'] = deployYear;
  367. return map;
  368. }
  369. }
  370. class SaveDeployRecordRequest {
  371. String? id;
  372. String? version;
  373. String? releasedBy;
  374. String? internalRecord;
  375. List<DeployRecordUpgradeInfoDTO>? upgradeInfos;
  376. SaveDeployRecordRequest({
  377. this.id,
  378. this.version,
  379. this.releasedBy,
  380. this.internalRecord,
  381. this.upgradeInfos,
  382. });
  383. factory SaveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  384. return SaveDeployRecordRequest(
  385. id: map['Id'],
  386. version: map['Version'],
  387. releasedBy: map['ReleasedBy'],
  388. internalRecord: map['InternalRecord'],
  389. upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  390. );
  391. }
  392. Map<String, dynamic> toJson() {
  393. final map = Map<String, dynamic>();
  394. if (id != null) {
  395. map['Id'] = id;
  396. }
  397. if (version != null) {
  398. map['Version'] = version;
  399. }
  400. if (releasedBy != null) {
  401. map['ReleasedBy'] = releasedBy;
  402. }
  403. if (internalRecord != null) {
  404. map['InternalRecord'] = internalRecord;
  405. }
  406. if (upgradeInfos != null) {
  407. map['UpgradeInfos'] = upgradeInfos;
  408. }
  409. return map;
  410. }
  411. }
  412. class RemoveDeployRecordRequest {
  413. String? id;
  414. RemoveDeployRecordRequest({
  415. this.id,
  416. });
  417. factory RemoveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  418. return RemoveDeployRecordRequest(
  419. id: map['Id'],
  420. );
  421. }
  422. Map<String, dynamic> toJson() {
  423. final map = Map<String, dynamic>();
  424. if (id != null) {
  425. map['Id'] = id;
  426. }
  427. return map;
  428. }
  429. }
  430. class AddDeployPlatOperatorRequest {
  431. String? name;
  432. DeployPlatOperatorStatusEnum status;
  433. AddDeployPlatOperatorRequest({
  434. this.name,
  435. this.status = DeployPlatOperatorStatusEnum.Inactive,
  436. });
  437. factory AddDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  438. return AddDeployPlatOperatorRequest(
  439. name: map['Name'],
  440. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  441. );
  442. }
  443. Map<String, dynamic> toJson() {
  444. final map = Map<String, dynamic>();
  445. if (name != null) {
  446. map['Name'] = name;
  447. }
  448. map['Status'] = status.index;
  449. return map;
  450. }
  451. }
  452. class ModifyDeployPlatOperatorRequest {
  453. String? id;
  454. String? name;
  455. DeployPlatOperatorStatusEnum status;
  456. ModifyDeployPlatOperatorRequest({
  457. this.id,
  458. this.name,
  459. this.status = DeployPlatOperatorStatusEnum.Inactive,
  460. });
  461. factory ModifyDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  462. return ModifyDeployPlatOperatorRequest(
  463. id: map['Id'],
  464. name: map['Name'],
  465. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  466. );
  467. }
  468. Map<String, dynamic> toJson() {
  469. final map = Map<String, dynamic>();
  470. if (id != null) {
  471. map['Id'] = id;
  472. }
  473. if (name != null) {
  474. map['Name'] = name;
  475. }
  476. map['Status'] = status.index;
  477. return map;
  478. }
  479. }
  480. class DeleteDeployPlatOperatorRequest {
  481. String? id;
  482. DeleteDeployPlatOperatorRequest({
  483. this.id,
  484. });
  485. factory DeleteDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  486. return DeleteDeployPlatOperatorRequest(
  487. id: map['Id'],
  488. );
  489. }
  490. Map<String, dynamic> toJson() {
  491. final map = Map<String, dynamic>();
  492. if (id != null) {
  493. map['Id'] = id;
  494. }
  495. return map;
  496. }
  497. }
  498. enum DeployPlatLoginResultEnum {
  499. Ok,
  500. WrongAccountName,
  501. WrongPassword,
  502. AccountInActive,
  503. Unknown,
  504. }
  505. class OperatorLoginRequest {
  506. String? name;
  507. String? password;
  508. OperatorLoginRequest({
  509. this.name,
  510. this.password,
  511. });
  512. factory OperatorLoginRequest.fromJson(Map<String, dynamic> map) {
  513. return OperatorLoginRequest(
  514. name: map['Name'],
  515. password: map['Password'],
  516. );
  517. }
  518. Map<String, dynamic> toJson() {
  519. final map = Map<String, dynamic>();
  520. if (name != null) {
  521. map['Name'] = name;
  522. }
  523. if (password != null) {
  524. map['Password'] = password;
  525. }
  526. return map;
  527. }
  528. }
  529. class FindTextWithUrlAndPrefixRequest {
  530. String? url;
  531. String? prefix;
  532. FindTextWithUrlAndPrefixRequest({
  533. this.url,
  534. this.prefix,
  535. });
  536. factory FindTextWithUrlAndPrefixRequest.fromJson(Map<String, dynamic> map) {
  537. return FindTextWithUrlAndPrefixRequest(
  538. url: map['Url'],
  539. prefix: map['Prefix'],
  540. );
  541. }
  542. Map<String, dynamic> toJson() {
  543. final map = Map<String, dynamic>();
  544. if (url != null) {
  545. map['Url'] = url;
  546. }
  547. if (prefix != null) {
  548. map['Prefix'] = prefix;
  549. }
  550. return map;
  551. }
  552. }
  553. class GeneratePackageRequest {
  554. String? deployRecordId;
  555. bool isCreateDeployTool;
  556. bool isIncludeLocalPackage;
  557. bool isServerSelected;
  558. bool isPCClientSelected;
  559. bool isAndroidClientSelected;
  560. bool isSonoPostSelected;
  561. bool isWindowsFISSDKSelected;
  562. String? selectedServerZipUrl;
  563. String? selectedPCClientZipUrl;
  564. String? selectedAndroidClientZipUrl;
  565. String? selectedSonoPostZipUrl;
  566. String? selectedWindowsFISSDKZipUrl;
  567. String? language;
  568. GeneratePackageRequest({
  569. this.deployRecordId,
  570. this.isCreateDeployTool = false,
  571. this.isIncludeLocalPackage = false,
  572. this.isServerSelected = false,
  573. this.isPCClientSelected = false,
  574. this.isAndroidClientSelected = false,
  575. this.isSonoPostSelected = false,
  576. this.isWindowsFISSDKSelected = false,
  577. this.selectedServerZipUrl,
  578. this.selectedPCClientZipUrl,
  579. this.selectedAndroidClientZipUrl,
  580. this.selectedSonoPostZipUrl,
  581. this.selectedWindowsFISSDKZipUrl,
  582. this.language,
  583. });
  584. factory GeneratePackageRequest.fromJson(Map<String, dynamic> map) {
  585. return GeneratePackageRequest(
  586. deployRecordId: map['DeployRecordId'],
  587. isCreateDeployTool: map['IsCreateDeployTool'],
  588. isIncludeLocalPackage: map['IsIncludeLocalPackage'],
  589. isServerSelected: map['IsServerSelected'],
  590. isPCClientSelected: map['IsPCClientSelected'],
  591. isAndroidClientSelected: map['IsAndroidClientSelected'],
  592. isSonoPostSelected: map['IsSonoPostSelected'],
  593. isWindowsFISSDKSelected: map['IsWindowsFISSDKSelected'],
  594. selectedServerZipUrl: map['SelectedServerZipUrl'],
  595. selectedPCClientZipUrl: map['SelectedPCClientZipUrl'],
  596. selectedAndroidClientZipUrl: map['SelectedAndroidClientZipUrl'],
  597. selectedSonoPostZipUrl: map['SelectedSonoPostZipUrl'],
  598. selectedWindowsFISSDKZipUrl: map['SelectedWindowsFISSDKZipUrl'],
  599. language: map['Language'],
  600. );
  601. }
  602. Map<String, dynamic> toJson() {
  603. final map = Map<String, dynamic>();
  604. if (deployRecordId != null) {
  605. map['DeployRecordId'] = deployRecordId;
  606. }
  607. map['IsCreateDeployTool'] = isCreateDeployTool;
  608. map['IsIncludeLocalPackage'] = isIncludeLocalPackage;
  609. map['IsServerSelected'] = isServerSelected;
  610. map['IsPCClientSelected'] = isPCClientSelected;
  611. map['IsAndroidClientSelected'] = isAndroidClientSelected;
  612. map['IsSonoPostSelected'] = isSonoPostSelected;
  613. map['IsWindowsFISSDKSelected'] = isWindowsFISSDKSelected;
  614. if (selectedServerZipUrl != null) {
  615. map['SelectedServerZipUrl'] = selectedServerZipUrl;
  616. }
  617. if (selectedPCClientZipUrl != null) {
  618. map['SelectedPCClientZipUrl'] = selectedPCClientZipUrl;
  619. }
  620. if (selectedAndroidClientZipUrl != null) {
  621. map['SelectedAndroidClientZipUrl'] = selectedAndroidClientZipUrl;
  622. }
  623. if (selectedSonoPostZipUrl != null) {
  624. map['SelectedSonoPostZipUrl'] = selectedSonoPostZipUrl;
  625. }
  626. if (selectedWindowsFISSDKZipUrl != null) {
  627. map['SelectedWindowsFISSDKZipUrl'] = selectedWindowsFISSDKZipUrl;
  628. }
  629. if (language != null) {
  630. map['Language'] = language;
  631. }
  632. return map;
  633. }
  634. }
  635. class UploadTotargetServerRequest {
  636. String? serverInfoId;
  637. String? recordId;
  638. UploadTotargetServerRequest({
  639. this.serverInfoId,
  640. this.recordId,
  641. });
  642. factory UploadTotargetServerRequest.fromJson(Map<String, dynamic> map) {
  643. return UploadTotargetServerRequest(
  644. serverInfoId: map['ServerInfoId'],
  645. recordId: map['RecordId'],
  646. );
  647. }
  648. Map<String, dynamic> toJson() {
  649. final map = Map<String, dynamic>();
  650. if (serverInfoId != null) {
  651. map['ServerInfoId'] = serverInfoId;
  652. }
  653. if (recordId != null) {
  654. map['RecordId'] = recordId;
  655. }
  656. return map;
  657. }
  658. }
  659. class GetPackageRequest {
  660. String? deployRecordId;
  661. GetPackageRequest({
  662. this.deployRecordId,
  663. });
  664. factory GetPackageRequest.fromJson(Map<String, dynamic> map) {
  665. return GetPackageRequest(
  666. deployRecordId: map['DeployRecordId'],
  667. );
  668. }
  669. Map<String, dynamic> toJson() {
  670. final map = Map<String, dynamic>();
  671. if (deployRecordId != null) {
  672. map['DeployRecordId'] = deployRecordId;
  673. }
  674. return map;
  675. }
  676. }
  677. class CancelPackagingRequest {
  678. String? deployRecordId;
  679. CancelPackagingRequest({
  680. this.deployRecordId,
  681. });
  682. factory CancelPackagingRequest.fromJson(Map<String, dynamic> map) {
  683. return CancelPackagingRequest(
  684. deployRecordId: map['DeployRecordId'],
  685. );
  686. }
  687. Map<String, dynamic> toJson() {
  688. final map = Map<String, dynamic>();
  689. if (deployRecordId != null) {
  690. map['DeployRecordId'] = deployRecordId;
  691. }
  692. return map;
  693. }
  694. }
  695. class ReadAppSettingsJsonRequest {
  696. int settingType;
  697. ReadAppSettingsJsonRequest({
  698. this.settingType = 0,
  699. });
  700. factory ReadAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
  701. return ReadAppSettingsJsonRequest(
  702. settingType: map['SettingType'],
  703. );
  704. }
  705. Map<String, dynamic> toJson() {
  706. final map = Map<String, dynamic>();
  707. map['SettingType'] = settingType;
  708. return map;
  709. }
  710. }
  711. class ModifyAppSettingsJsonRequest {
  712. int settingType;
  713. String? json;
  714. ModifyAppSettingsJsonRequest({
  715. this.settingType = 0,
  716. this.json,
  717. });
  718. factory ModifyAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
  719. return ModifyAppSettingsJsonRequest(
  720. settingType: map['SettingType'],
  721. json: map['Json'],
  722. );
  723. }
  724. Map<String, dynamic> toJson() {
  725. final map = Map<String, dynamic>();
  726. map['SettingType'] = settingType;
  727. if (json != null) {
  728. map['Json'] = json;
  729. }
  730. return map;
  731. }
  732. }
  733. class DeployRequest {
  734. bool isUpgradeServer;
  735. String? serverZipUrl;
  736. bool isUpgradeClient;
  737. String? openWebUrl;
  738. String? clientWebUrl;
  739. String? upgradeSettings;
  740. DeployRequest({
  741. this.isUpgradeServer = false,
  742. this.serverZipUrl,
  743. this.isUpgradeClient = false,
  744. this.openWebUrl,
  745. this.clientWebUrl,
  746. this.upgradeSettings,
  747. });
  748. factory DeployRequest.fromJson(Map<String, dynamic> map) {
  749. return DeployRequest(
  750. isUpgradeServer: map['IsUpgradeServer'],
  751. serverZipUrl: map['ServerZipUrl'],
  752. isUpgradeClient: map['IsUpgradeClient'],
  753. openWebUrl: map['OpenWebUrl'],
  754. clientWebUrl: map['ClientWebUrl'],
  755. upgradeSettings: map['UpgradeSettings'],
  756. );
  757. }
  758. Map<String, dynamic> toJson() {
  759. final map = Map<String, dynamic>();
  760. map['IsUpgradeServer'] = isUpgradeServer;
  761. if (serverZipUrl != null) {
  762. map['ServerZipUrl'] = serverZipUrl;
  763. }
  764. map['IsUpgradeClient'] = isUpgradeClient;
  765. if (openWebUrl != null) {
  766. map['OpenWebUrl'] = openWebUrl;
  767. }
  768. if (clientWebUrl != null) {
  769. map['ClientWebUrl'] = clientWebUrl;
  770. }
  771. if (upgradeSettings != null) {
  772. map['UpgradeSettings'] = upgradeSettings;
  773. }
  774. return map;
  775. }
  776. }