deployPlatform.m.dart 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  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. if(ip != null)
  91. map['Ip'] = ip;
  92. if(name != null)
  93. map['Name'] = name;
  94. map['IsMaster'] = isMaster;
  95. if(masterServerId != null)
  96. map['MasterServerId'] = masterServerId;
  97. if(remoteServerIp != null)
  98. map['RemoteServerIp'] = remoteServerIp;
  99. return map;
  100. }
  101. }
  102. class UpdateServerRequest {
  103. String? id;
  104. String? serverID;
  105. String? ip;
  106. String? name;
  107. bool isMaster;
  108. String? masterServerId;
  109. String? remoteServerIp;
  110. UpdateServerRequest({
  111. this.id,
  112. this.serverID,
  113. this.ip,
  114. this.name,
  115. this.isMaster = false,
  116. this.masterServerId,
  117. this.remoteServerIp,
  118. });
  119. factory UpdateServerRequest.fromJson(Map<String, dynamic> map) {
  120. return UpdateServerRequest(
  121. id: map['Id'],
  122. serverID: map['ServerID'],
  123. ip: map['Ip'],
  124. name: map['Name'],
  125. isMaster: map['IsMaster'],
  126. masterServerId: map['MasterServerId'],
  127. remoteServerIp: map['RemoteServerIp'],
  128. );
  129. }
  130. Map<String, dynamic> toJson() {
  131. final map = Map<String, dynamic>();
  132. if(id != null)
  133. map['Id'] = id;
  134. if(serverID != null)
  135. map['ServerID'] = serverID;
  136. if(ip != null)
  137. map['Ip'] = ip;
  138. if(name != null)
  139. map['Name'] = name;
  140. map['IsMaster'] = isMaster;
  141. if(masterServerId != null)
  142. map['MasterServerId'] = masterServerId;
  143. if(remoteServerIp != null)
  144. map['RemoteServerIp'] = remoteServerIp;
  145. return map;
  146. }
  147. }
  148. class SaveLogsRequest {
  149. String? id;
  150. String? logs;
  151. SaveLogsRequest({
  152. this.id,
  153. this.logs,
  154. });
  155. factory SaveLogsRequest.fromJson(Map<String, dynamic> map) {
  156. return SaveLogsRequest(
  157. id: map['Id'],
  158. logs: map['Logs'],
  159. );
  160. }
  161. Map<String, dynamic> toJson() {
  162. final map = Map<String, dynamic>();
  163. if(id != null)
  164. map['Id'] = id;
  165. if(logs != null)
  166. map['Logs'] = logs;
  167. return map;
  168. }
  169. }
  170. class GetServerRequest {
  171. String? id;
  172. GetServerRequest({
  173. this.id,
  174. });
  175. factory GetServerRequest.fromJson(Map<String, dynamic> map) {
  176. return GetServerRequest(
  177. id: map['Id'],
  178. );
  179. }
  180. Map<String, dynamic> toJson() {
  181. final map = Map<String, dynamic>();
  182. if(id != null)
  183. map['Id'] = id;
  184. return map;
  185. }
  186. }
  187. enum DeployPlatOperatorStatusEnum {
  188. Inactive,
  189. Active,
  190. }
  191. class DeployPlatOperatorDTO extends BaseDTO{
  192. String? id;
  193. String? name;
  194. DeployPlatOperatorStatusEnum status;
  195. DeployPlatOperatorDTO({
  196. this.id,
  197. this.name,
  198. this.status = DeployPlatOperatorStatusEnum.Inactive,
  199. DateTime? createTime,
  200. DateTime? updateTime,
  201. }) : super(
  202. createTime: createTime,
  203. updateTime: updateTime,
  204. );
  205. factory DeployPlatOperatorDTO.fromJson(Map<String, dynamic> map) {
  206. return DeployPlatOperatorDTO(
  207. id: map['Id'],
  208. name: map['Name'],
  209. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  210. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  211. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  212. );
  213. }
  214. Map<String, dynamic> toJson() {
  215. final map = super.toJson();
  216. if(id != null)
  217. map['Id'] = id;
  218. if(name != null)
  219. map['Name'] = name;
  220. map['Status'] = status.index;
  221. return map;
  222. }
  223. }
  224. enum DeployDeviceEnum {
  225. PC,
  226. Android,
  227. Mac,
  228. }
  229. class DeployRecordUpgradeInfoDTO extends BaseDTO{
  230. String? id;
  231. DeployDeviceEnum deviceType;
  232. String? language;
  233. String? describe;
  234. DeployRecordUpgradeInfoDTO({
  235. this.id,
  236. this.deviceType = DeployDeviceEnum.PC,
  237. this.language,
  238. this.describe,
  239. DateTime? createTime,
  240. DateTime? updateTime,
  241. }) : super(
  242. createTime: createTime,
  243. updateTime: updateTime,
  244. );
  245. factory DeployRecordUpgradeInfoDTO.fromJson(Map<String, dynamic> map) {
  246. return DeployRecordUpgradeInfoDTO(
  247. id: map['Id'],
  248. deviceType: DeployDeviceEnum.values.firstWhere((e) => e.index == map['DeviceType']),
  249. language: map['Language'],
  250. describe: map['Describe'],
  251. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  252. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  253. );
  254. }
  255. Map<String, dynamic> toJson() {
  256. final map = super.toJson();
  257. if(id != null)
  258. map['Id'] = id;
  259. map['DeviceType'] = deviceType.index;
  260. if(language != null)
  261. map['Language'] = language;
  262. if(describe != null)
  263. map['Describe'] = describe;
  264. return map;
  265. }
  266. }
  267. class DeployRecordInfoDTO extends BaseDTO{
  268. String? id;
  269. String? version;
  270. String? releasedBy;
  271. String? internalRecord;
  272. bool inProcess;
  273. String? generatePackageJson;
  274. String? packageLogs;
  275. DateTime? lastPackageTime;
  276. List<DeployRecordUpgradeInfoDTO >? upgradeInfos;
  277. DeployRecordInfoDTO({
  278. this.id,
  279. this.version,
  280. this.releasedBy,
  281. this.internalRecord,
  282. this.inProcess = false,
  283. this.generatePackageJson,
  284. this.packageLogs,
  285. this.lastPackageTime,
  286. this.upgradeInfos,
  287. DateTime? createTime,
  288. DateTime? updateTime,
  289. }) : super(
  290. createTime: createTime,
  291. updateTime: updateTime,
  292. );
  293. factory DeployRecordInfoDTO.fromJson(Map<String, dynamic> map) {
  294. return DeployRecordInfoDTO(
  295. id: map['Id'],
  296. version: map['Version'],
  297. releasedBy: map['ReleasedBy'],
  298. internalRecord: map['InternalRecord'],
  299. inProcess: map['InProcess'],
  300. generatePackageJson: map['GeneratePackageJson'],
  301. packageLogs: map['PackageLogs'],
  302. lastPackageTime: map['LastPackageTime'] != null ? DateTime.parse(map['LastPackageTime']) : null,
  303. upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  304. createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
  305. updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
  306. );
  307. }
  308. Map<String, dynamic> toJson() {
  309. final map = super.toJson();
  310. if(id != null)
  311. map['Id'] = id;
  312. if(version != null)
  313. map['Version'] = version;
  314. if(releasedBy != null)
  315. map['ReleasedBy'] = releasedBy;
  316. if(internalRecord != null)
  317. map['InternalRecord'] = internalRecord;
  318. map['InProcess'] = inProcess;
  319. if(generatePackageJson != null)
  320. map['GeneratePackageJson'] = generatePackageJson;
  321. if(packageLogs != null)
  322. map['PackageLogs'] = packageLogs;
  323. if(lastPackageTime != null)
  324. map['LastPackageTime'] = JsonRpcUtils.dateFormat(lastPackageTime!);
  325. if(upgradeInfos != null)
  326. map['UpgradeInfos'] = upgradeInfos;
  327. return map;
  328. }
  329. }
  330. class GetDeployRecordRequest {
  331. int deployYear;
  332. GetDeployRecordRequest({
  333. this.deployYear = 0,
  334. });
  335. factory GetDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  336. return GetDeployRecordRequest(
  337. deployYear: map['DeployYear'],
  338. );
  339. }
  340. Map<String, dynamic> toJson() {
  341. final map = Map<String, dynamic>();
  342. map['DeployYear'] = deployYear;
  343. return map;
  344. }
  345. }
  346. class SaveDeployRecordRequest {
  347. String? id;
  348. String? version;
  349. String? releasedBy;
  350. String? internalRecord;
  351. List<DeployRecordUpgradeInfoDTO >? upgradeInfos;
  352. SaveDeployRecordRequest({
  353. this.id,
  354. this.version,
  355. this.releasedBy,
  356. this.internalRecord,
  357. this.upgradeInfos,
  358. });
  359. factory SaveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  360. return SaveDeployRecordRequest(
  361. id: map['Id'],
  362. version: map['Version'],
  363. releasedBy: map['ReleasedBy'],
  364. internalRecord: map['InternalRecord'],
  365. upgradeInfos: map['UpgradeInfos'] != null ? (map['UpgradeInfos'] as List).map((e)=>DeployRecordUpgradeInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
  366. );
  367. }
  368. Map<String, dynamic> toJson() {
  369. final map = Map<String, dynamic>();
  370. if(id != null)
  371. map['Id'] = id;
  372. if(version != null)
  373. map['Version'] = version;
  374. if(releasedBy != null)
  375. map['ReleasedBy'] = releasedBy;
  376. if(internalRecord != null)
  377. map['InternalRecord'] = internalRecord;
  378. if(upgradeInfos != null)
  379. map['UpgradeInfos'] = upgradeInfos;
  380. return map;
  381. }
  382. }
  383. class RemoveDeployRecordRequest {
  384. String? id;
  385. RemoveDeployRecordRequest({
  386. this.id,
  387. });
  388. factory RemoveDeployRecordRequest.fromJson(Map<String, dynamic> map) {
  389. return RemoveDeployRecordRequest(
  390. id: map['Id'],
  391. );
  392. }
  393. Map<String, dynamic> toJson() {
  394. final map = Map<String, dynamic>();
  395. if(id != null)
  396. map['Id'] = id;
  397. return map;
  398. }
  399. }
  400. class AddDeployPlatOperatorRequest {
  401. String? name;
  402. DeployPlatOperatorStatusEnum status;
  403. AddDeployPlatOperatorRequest({
  404. this.name,
  405. this.status = DeployPlatOperatorStatusEnum.Inactive,
  406. });
  407. factory AddDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  408. return AddDeployPlatOperatorRequest(
  409. name: map['Name'],
  410. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  411. );
  412. }
  413. Map<String, dynamic> toJson() {
  414. final map = Map<String, dynamic>();
  415. if(name != null)
  416. map['Name'] = name;
  417. map['Status'] = status.index;
  418. return map;
  419. }
  420. }
  421. class ModifyDeployPlatOperatorRequest {
  422. String? id;
  423. String? name;
  424. DeployPlatOperatorStatusEnum status;
  425. ModifyDeployPlatOperatorRequest({
  426. this.id,
  427. this.name,
  428. this.status = DeployPlatOperatorStatusEnum.Inactive,
  429. });
  430. factory ModifyDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  431. return ModifyDeployPlatOperatorRequest(
  432. id: map['Id'],
  433. name: map['Name'],
  434. status: DeployPlatOperatorStatusEnum.values.firstWhere((e) => e.index == map['Status']),
  435. );
  436. }
  437. Map<String, dynamic> toJson() {
  438. final map = Map<String, dynamic>();
  439. if(id != null)
  440. map['Id'] = id;
  441. if(name != null)
  442. map['Name'] = name;
  443. map['Status'] = status.index;
  444. return map;
  445. }
  446. }
  447. class DeleteDeployPlatOperatorRequest {
  448. String? id;
  449. DeleteDeployPlatOperatorRequest({
  450. this.id,
  451. });
  452. factory DeleteDeployPlatOperatorRequest.fromJson(Map<String, dynamic> map) {
  453. return DeleteDeployPlatOperatorRequest(
  454. id: map['Id'],
  455. );
  456. }
  457. Map<String, dynamic> toJson() {
  458. final map = Map<String, dynamic>();
  459. if(id != null)
  460. map['Id'] = id;
  461. return map;
  462. }
  463. }
  464. class OperatorLoginRequest {
  465. String? name;
  466. String? password;
  467. OperatorLoginRequest({
  468. this.name,
  469. this.password,
  470. });
  471. factory OperatorLoginRequest.fromJson(Map<String, dynamic> map) {
  472. return OperatorLoginRequest(
  473. name: map['Name'],
  474. password: map['Password'],
  475. );
  476. }
  477. Map<String, dynamic> toJson() {
  478. final map = Map<String, dynamic>();
  479. if(name != null)
  480. map['Name'] = name;
  481. if(password != null)
  482. map['Password'] = password;
  483. return map;
  484. }
  485. }
  486. class FindTextWithUrlAndPrefixRequest {
  487. String? url;
  488. String? prefix;
  489. FindTextWithUrlAndPrefixRequest({
  490. this.url,
  491. this.prefix,
  492. });
  493. factory FindTextWithUrlAndPrefixRequest.fromJson(Map<String, dynamic> map) {
  494. return FindTextWithUrlAndPrefixRequest(
  495. url: map['Url'],
  496. prefix: map['Prefix'],
  497. );
  498. }
  499. Map<String, dynamic> toJson() {
  500. final map = Map<String, dynamic>();
  501. if(url != null)
  502. map['Url'] = url;
  503. if(prefix != null)
  504. map['Prefix'] = prefix;
  505. return map;
  506. }
  507. }
  508. class GeneratePackageRequest {
  509. String? deployRecordId;
  510. bool isIncludeLocalPackage;
  511. bool isServerSelected;
  512. bool isPCClientSelected;
  513. bool isAndroidClientSelected;
  514. bool isSonoPostSelected;
  515. bool isWindowsFISSDKSelected;
  516. String? selectedServerZipUrl;
  517. String? selectedPCClientZipUrl;
  518. String? selectedAndroidClientZipUrl;
  519. String? selectedSonoPostZipUrl;
  520. String? selectedWindowsFISSDKZipUrl;
  521. String? language;
  522. GeneratePackageRequest({
  523. this.deployRecordId,
  524. this.isIncludeLocalPackage = false,
  525. this.isServerSelected = false,
  526. this.isPCClientSelected = false,
  527. this.isAndroidClientSelected = false,
  528. this.isSonoPostSelected = false,
  529. this.isWindowsFISSDKSelected = false,
  530. this.selectedServerZipUrl,
  531. this.selectedPCClientZipUrl,
  532. this.selectedAndroidClientZipUrl,
  533. this.selectedSonoPostZipUrl,
  534. this.selectedWindowsFISSDKZipUrl,
  535. this.language,
  536. });
  537. factory GeneratePackageRequest.fromJson(Map<String, dynamic> map) {
  538. return GeneratePackageRequest(
  539. deployRecordId: map['DeployRecordId'],
  540. isIncludeLocalPackage: map['IsIncludeLocalPackage'],
  541. isServerSelected: map['IsServerSelected'],
  542. isPCClientSelected: map['IsPCClientSelected'],
  543. isAndroidClientSelected: map['IsAndroidClientSelected'],
  544. isSonoPostSelected: map['IsSonoPostSelected'],
  545. isWindowsFISSDKSelected: map['IsWindowsFISSDKSelected'],
  546. selectedServerZipUrl: map['SelectedServerZipUrl'],
  547. selectedPCClientZipUrl: map['SelectedPCClientZipUrl'],
  548. selectedAndroidClientZipUrl: map['SelectedAndroidClientZipUrl'],
  549. selectedSonoPostZipUrl: map['SelectedSonoPostZipUrl'],
  550. selectedWindowsFISSDKZipUrl: map['SelectedWindowsFISSDKZipUrl'],
  551. language: map['Language'],
  552. );
  553. }
  554. Map<String, dynamic> toJson() {
  555. final map = Map<String, dynamic>();
  556. if(deployRecordId != null)
  557. map['DeployRecordId'] = deployRecordId;
  558. map['IsIncludeLocalPackage'] = isIncludeLocalPackage;
  559. map['IsServerSelected'] = isServerSelected;
  560. map['IsPCClientSelected'] = isPCClientSelected;
  561. map['IsAndroidClientSelected'] = isAndroidClientSelected;
  562. map['IsSonoPostSelected'] = isSonoPostSelected;
  563. map['IsWindowsFISSDKSelected'] = isWindowsFISSDKSelected;
  564. if(selectedServerZipUrl != null)
  565. map['SelectedServerZipUrl'] = selectedServerZipUrl;
  566. if(selectedPCClientZipUrl != null)
  567. map['SelectedPCClientZipUrl'] = selectedPCClientZipUrl;
  568. if(selectedAndroidClientZipUrl != null)
  569. map['SelectedAndroidClientZipUrl'] = selectedAndroidClientZipUrl;
  570. if(selectedSonoPostZipUrl != null)
  571. map['SelectedSonoPostZipUrl'] = selectedSonoPostZipUrl;
  572. if(selectedWindowsFISSDKZipUrl != null)
  573. map['SelectedWindowsFISSDKZipUrl'] = selectedWindowsFISSDKZipUrl;
  574. if(language != null)
  575. map['Language'] = language;
  576. return map;
  577. }
  578. }
  579. class GetPackageRequest {
  580. String? deployRecordId;
  581. GetPackageRequest({
  582. this.deployRecordId,
  583. });
  584. factory GetPackageRequest.fromJson(Map<String, dynamic> map) {
  585. return GetPackageRequest(
  586. deployRecordId: map['DeployRecordId'],
  587. );
  588. }
  589. Map<String, dynamic> toJson() {
  590. final map = Map<String, dynamic>();
  591. if(deployRecordId != null)
  592. map['DeployRecordId'] = deployRecordId;
  593. return map;
  594. }
  595. }
  596. class CancelPackagingRequest {
  597. String? deployRecordId;
  598. CancelPackagingRequest({
  599. this.deployRecordId,
  600. });
  601. factory CancelPackagingRequest.fromJson(Map<String, dynamic> map) {
  602. return CancelPackagingRequest(
  603. deployRecordId: map['DeployRecordId'],
  604. );
  605. }
  606. Map<String, dynamic> toJson() {
  607. final map = Map<String, dynamic>();
  608. if(deployRecordId != null)
  609. map['DeployRecordId'] = deployRecordId;
  610. return map;
  611. }
  612. }
  613. class ReadAppSettingsJsonRequest {
  614. int settingType;
  615. ReadAppSettingsJsonRequest({
  616. this.settingType = 0,
  617. });
  618. factory ReadAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
  619. return ReadAppSettingsJsonRequest(
  620. settingType: map['SettingType'],
  621. );
  622. }
  623. Map<String, dynamic> toJson() {
  624. final map = Map<String, dynamic>();
  625. map['SettingType'] = settingType;
  626. return map;
  627. }
  628. }
  629. class ModifyAppSettingsJsonRequest {
  630. int settingType;
  631. String? json;
  632. ModifyAppSettingsJsonRequest({
  633. this.settingType = 0,
  634. this.json,
  635. });
  636. factory ModifyAppSettingsJsonRequest.fromJson(Map<String, dynamic> map) {
  637. return ModifyAppSettingsJsonRequest(
  638. settingType: map['SettingType'],
  639. json: map['Json'],
  640. );
  641. }
  642. Map<String, dynamic> toJson() {
  643. final map = Map<String, dynamic>();
  644. map['SettingType'] = settingType;
  645. if(json != null)
  646. map['Json'] = json;
  647. return map;
  648. }
  649. }
  650. class DeployRequest {
  651. bool isUpgradeServer;
  652. String? serverZipUrl;
  653. String? upgradeSettings;
  654. String? updateMode;
  655. DeployRequest({
  656. this.isUpgradeServer = false,
  657. this.serverZipUrl,
  658. this.upgradeSettings,
  659. this.updateMode,
  660. });
  661. factory DeployRequest.fromJson(Map<String, dynamic> map) {
  662. return DeployRequest(
  663. isUpgradeServer: map['IsUpgradeServer'],
  664. serverZipUrl: map['ServerZipUrl'],
  665. upgradeSettings: map['UpgradeSettings'],
  666. updateMode: map['UpdateMode'],
  667. );
  668. }
  669. Map<String, dynamic> toJson() {
  670. final map = Map<String, dynamic>();
  671. map['IsUpgradeServer'] = isUpgradeServer;
  672. if(serverZipUrl != null)
  673. map['ServerZipUrl'] = serverZipUrl;
  674. if(upgradeSettings != null)
  675. map['UpgradeSettings'] = upgradeSettings;
  676. if(updateMode != null)
  677. map['UpdateMode'] = updateMode;
  678. return map;
  679. }
  680. }