subject_info.dart 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. ///
  2. /// 帖子信息对象
  3. ///
  4. class SubjectInfo {
  5. SubjectInfo({
  6. this.id,
  7. this.createTime,
  8. this.updateTime,
  9. this.sequence,
  10. this.forumId,
  11. this.forumName,
  12. this.sectionId,
  13. this.sectionName,
  14. this.mainSectionId,
  15. this.mainSectionName,
  16. this.title,
  17. this.creatorName,
  18. this.creatorNameShort,
  19. this.type,
  20. this.summary,
  21. this.content,
  22. this.latestReplyTime,
  23. this.latestReplyUser,
  24. this.latestReplyId,
  25. this.replyTotal,
  26. this.viewTotal,
  27. this.hot,
  28. this.stopReply,
  29. this.recommendToBBSIndex,
  30. this.bBSIndexSetterName,
  31. this.recommendToForumIndex,
  32. this.forumIndexSetterName,
  33. this.topToSection,
  34. this.topToMainSection,
  35. this.topToForum,
  36. this.topToBBS,
  37. this.isTopSubject,
  38. this.isCreamSubject,
  39. this.anonymousSubject,
  40. this.typeCategory,
  41. this.machineName,
  42. this.systemType,
  43. this.nickName
  44. // this.attachmentList,
  45. });
  46. String? id;
  47. String? createTime;
  48. String? updateTime;
  49. String? sequence;
  50. String? forumId;
  51. String? forumName;
  52. String? sectionId;
  53. String? sectionName;
  54. String? mainSectionId;
  55. String? mainSectionName;
  56. String? title; // 标题
  57. String? creatorName;
  58. String? creatorNameShort;
  59. String? type; // 类型
  60. String? summary; // 摘要
  61. String? content; // 内容
  62. String? latestReplyTime;
  63. String? latestReplyUser;
  64. String? latestReplyId;
  65. int? replyTotal;
  66. int? viewTotal;
  67. int? hot;
  68. bool? stopReply;
  69. bool? recommendToBBSIndex;
  70. String? bBSIndexSetterName;
  71. bool? recommendToForumIndex;
  72. String? forumIndexSetterName;
  73. bool? topToSection;
  74. bool? topToMainSection;
  75. bool? topToForum;
  76. bool? topToBBS;
  77. bool? isTopSubject;
  78. bool? isCreamSubject;
  79. bool? anonymousSubject; // 匿名发帖
  80. String? typeCategory; // 分类
  81. String? machineName; // 设备名称
  82. String? systemType; // 系统类型
  83. String? nickName; // 昵称
  84. factory SubjectInfo.fromJson(Map<String, dynamic> json) => SubjectInfo(
  85. id: json["id"] ,
  86. createTime: json["createTime"] ,
  87. updateTime: json["updateTime"] ,
  88. sequence: json["sequence"] ,
  89. forumId: json["forumId"] ,
  90. forumName: json["forumName"] ,
  91. sectionId: json["sectionId"] ,
  92. sectionName: json["sectionName"] ,
  93. mainSectionId: json["mainSectionId"] ,
  94. mainSectionName: json["mainSectionName"] ,
  95. title: json["title"] ,
  96. creatorName: json["creatorName"] ,
  97. creatorNameShort: json["creatorNameShort"] ,
  98. type: json["type"] ,
  99. summary: json["summary"] ,
  100. content: json["content"] ,
  101. latestReplyTime: json["latestReplyTime"] ,
  102. latestReplyUser: json["latestReplyUser"] ,
  103. latestReplyId: json["latestReplyId"] ,
  104. replyTotal: json["replyTotal"] ,
  105. viewTotal: json["viewTotal"] ,
  106. hot: json["hot"] ,
  107. stopReply: json["stopReply"] ,
  108. recommendToBBSIndex: json["recommendToBBSIndex"] ,
  109. bBSIndexSetterName: json["bBSIndexSetterName"] ,
  110. recommendToForumIndex: json["recommendToForumIndex"] ,
  111. forumIndexSetterName: json["forumIndexSetterName"] ,
  112. topToSection: json["topToSection"] ,
  113. topToMainSection: json["topToMainSection"] ,
  114. topToForum: json["topToForum"] ,
  115. topToBBS: json["topToBBS"] ,
  116. isTopSubject: json["isTopSubject"] ,
  117. isCreamSubject: json["isCreamSubject"] ,
  118. anonymousSubject: json["anonymousSubject"] ,
  119. typeCategory: json["typeCategory"] ,
  120. machineName: json["machineName"] ,
  121. systemType: json["systemType"] ,
  122. nickName: json["nickName"] ,
  123. );
  124. Map<String, dynamic> toJson() => {
  125. "id": id ,
  126. "createTime": createTime ,
  127. "updateTime": updateTime ,
  128. "sequence": sequence ,
  129. "forumId": forumId ,
  130. "forumName": forumName ,
  131. "sectionId": sectionId ,
  132. "sectionName": sectionName ,
  133. "mainSectionId": mainSectionId ,
  134. "mainSectionName": mainSectionName ,
  135. "title": title ,
  136. "creatorName": creatorName ,
  137. "creatorNameShort": creatorNameShort ,
  138. "type": type ,
  139. "summary": summary ,
  140. "content": content ,
  141. "latestReplyTime": latestReplyTime ,
  142. "latestReplyUser": latestReplyUser ,
  143. "latestReplyId": latestReplyId ,
  144. "replyTotal": replyTotal ,
  145. "viewTotal": viewTotal ,
  146. "hot": hot ,
  147. "stopReply": stopReply ,
  148. "recommendToBBSIndex": recommendToBBSIndex ,
  149. "bBSIndexSetterName": bBSIndexSetterName ,
  150. "recommendToForumIndex": recommendToForumIndex ,
  151. "forumIndexSetterName": forumIndexSetterName ,
  152. "topToSection": topToSection ,
  153. "topToMainSection": topToMainSection ,
  154. "topToForum": topToForum ,
  155. "topToBBS": topToBBS ,
  156. "isTopSubject": isTopSubject ,
  157. "isCreamSubject": isCreamSubject ,
  158. "anonymousSubject": anonymousSubject ,
  159. "typeCategory": typeCategory ,
  160. "machineName": machineName ,
  161. "systemType": systemType ,
  162. "nickName": nickName ,
  163. };
  164. }