cms_category_data.dart 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. import 'cms_app_data.dart';
  2. class CmsCategoryData {
  3. CmsCategoryData({
  4. this.id,
  5. this.categoryName,
  6. this.appId,
  7. this.appName,
  8. this.documentType,
  9. this.categoryAlias,
  10. this.workflowType,
  11. this.workflowAppId,
  12. this.workflowAppName,
  13. this.workflowName,
  14. this.workflowFlag,
  15. this.formId,
  16. this.formName,
  17. this.readFormId,
  18. this.readFormName,
  19. this.defaultViewName,
  20. this.categorySeq,
  21. this.creatorPerson,
  22. this.creatorIdentity,
  23. this.creatorUnitName,
  24. this.creatorTopUnitName,
  25. this.allPeopleView,
  26. this.allPeoplePublish,
  27. this.importViewAppId,
  28. this.importViewId,
  29. this.importViewName,
  30. this.anonymousAble,
  31. this.sendNotify,
  32. this.blankToAllNotify,
  33. this.viewablePersonList,
  34. this.viewableUnitList,
  35. this.viewableGroupList,
  36. this.publishablePersonList,
  37. this.publishableUnitList,
  38. this.publishableGroupList,
  39. this.manageablePersonList,
  40. this.manageableUnitList,
  41. this.manageableGroupList,
  42. this.createTime,
  43. this.updateTime,
  44. });
  45. String? id;
  46. String? categoryName;
  47. String? appId;
  48. String? appName;
  49. String? documentType;
  50. String? categoryAlias;
  51. String? workflowType;
  52. String? workflowAppId;
  53. String? workflowAppName;
  54. String? workflowName;
  55. String? workflowFlag;
  56. String? formId;
  57. String? formName;
  58. String? readFormId;
  59. String? readFormName;
  60. String? defaultViewName;
  61. String? categorySeq;
  62. String? creatorPerson;
  63. String? creatorIdentity;
  64. String? creatorUnitName;
  65. String? creatorTopUnitName;
  66. bool? allPeopleView;
  67. bool? allPeoplePublish;
  68. String? importViewAppId;
  69. String? importViewId;
  70. String? importViewName;
  71. bool? anonymousAble;
  72. bool? sendNotify;
  73. bool? blankToAllNotify;
  74. List<String>? viewablePersonList;
  75. List<String>? viewableUnitList;
  76. List<String>? viewableGroupList;
  77. List<String>? publishablePersonList;
  78. List<String>? publishableUnitList;
  79. List<String>? publishableGroupList;
  80. List<String>? manageablePersonList;
  81. List<String>? manageableUnitList;
  82. List<String>? manageableGroupList;
  83. String? createTime;
  84. String? updateTime;
  85. CmsAppData? withApp;
  86. factory CmsCategoryData.fromJson(Map<String, dynamic> json) => CmsCategoryData(
  87. id: json["id"],
  88. categoryName: json["categoryName"],
  89. appId: json["appId"],
  90. appName: json["appName"],
  91. documentType: json["documentType"],
  92. categoryAlias: json["categoryAlias"],
  93. workflowType: json["workflowType"],
  94. workflowAppId: json["workflowAppId"],
  95. workflowAppName: json["workflowAppName"],
  96. workflowName: json["workflowName"],
  97. workflowFlag: json["workflowFlag"],
  98. formId: json["formId"],
  99. formName: json["formName"],
  100. readFormId: json["readFormId"],
  101. readFormName: json["readFormName"],
  102. defaultViewName: json["defaultViewName"],
  103. categorySeq: json["categorySeq"],
  104. creatorPerson: json["creatorPerson"],
  105. creatorIdentity: json["creatorIdentity"],
  106. creatorUnitName: json["creatorUnitName"],
  107. creatorTopUnitName: json["creatorTopUnitName"],
  108. allPeopleView: json["allPeopleView"],
  109. allPeoplePublish: json["allPeoplePublish"],
  110. importViewAppId: json["importViewAppId"],
  111. importViewId: json["importViewId"],
  112. importViewName: json["importViewName"],
  113. anonymousAble: json["anonymousAble"],
  114. sendNotify: json["sendNotify"],
  115. blankToAllNotify: json["blankToAllNotify"],
  116. viewablePersonList: List<String>.from(json["viewablePersonList"].map((x) => x)),
  117. viewableUnitList: List<String>.from(json["viewableUnitList"].map((x) => x)),
  118. viewableGroupList: List<String>.from(json["viewableGroupList"].map((x) => x)),
  119. publishablePersonList: List<String>.from(json["publishablePersonList"].map((x) => x)),
  120. publishableUnitList: List<String>.from(json["publishableUnitList"].map((x) => x)),
  121. publishableGroupList: List<String>.from(json["publishableGroupList"].map((x) => x)),
  122. manageablePersonList: List<String>.from(json["manageablePersonList"].map((x) => x)),
  123. manageableUnitList: List<String>.from(json["manageableUnitList"].map((x) => x)),
  124. manageableGroupList: List<String>.from(json["manageableGroupList"].map((x) => x)),
  125. createTime: json["createTime"],
  126. updateTime: json["updateTime"],
  127. );
  128. Map<String, dynamic> toJson() => {
  129. "id": id,
  130. "categoryName": categoryName,
  131. "appId": appId,
  132. "appName": appName,
  133. "documentType": documentType,
  134. "categoryAlias": categoryAlias,
  135. "workflowType": workflowType,
  136. "workflowAppId": workflowAppId,
  137. "workflowAppName": workflowAppName,
  138. "workflowName": workflowName,
  139. "workflowFlag": workflowFlag,
  140. "formId": formId,
  141. "formName": formName,
  142. "readFormId": readFormId,
  143. "readFormName": readFormName,
  144. "defaultViewName": defaultViewName,
  145. "categorySeq": categorySeq,
  146. "creatorPerson": creatorPerson,
  147. "creatorIdentity": creatorIdentity,
  148. "creatorUnitName": creatorUnitName,
  149. "creatorTopUnitName": creatorTopUnitName,
  150. "allPeopleView": allPeopleView,
  151. "allPeoplePublish": allPeoplePublish,
  152. "importViewAppId": importViewAppId,
  153. "importViewId": importViewId,
  154. "importViewName": importViewName,
  155. "anonymousAble": anonymousAble,
  156. "sendNotify": sendNotify,
  157. "blankToAllNotify": blankToAllNotify,
  158. "viewablePersonList": viewablePersonList,
  159. "viewableUnitList": viewableUnitList,
  160. "viewableGroupList": viewableGroupList,
  161. "publishablePersonList": publishablePersonList,
  162. "publishableUnitList": publishableUnitList,
  163. "publishableGroupList": publishableGroupList,
  164. "manageablePersonList": manageablePersonList,
  165. "manageableUnitList": manageableUnitList,
  166. "manageableGroupList": manageableGroupList,
  167. "createTime": createTime,
  168. "updateTime": updateTime,
  169. };
  170. }