reply_info.dart 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. class SubjectReplyInfoJson {
  2. String? id;
  3. String? createTime;
  4. String? updateTime;
  5. String? forumId;
  6. String? forumName;
  7. String? sectionId;
  8. String? sectionName;
  9. String? mainSectionId;
  10. String? mainSectionName;
  11. String? subjectId;
  12. String? title;
  13. String? parentId;
  14. String? content;
  15. String? creatorName;
  16. String? creatorNameShort;
  17. int? orderNumber;
  18. SubjectReplyInfoJson({
  19. this.id,
  20. this.createTime,
  21. this.updateTime,
  22. this.forumId,
  23. this.forumName,
  24. this.sectionId,
  25. this.sectionName,
  26. this.mainSectionId,
  27. this.mainSectionName,
  28. this.subjectId,
  29. this.title,
  30. this.parentId,
  31. this.content,
  32. this.creatorName,
  33. this.creatorNameShort,
  34. this.orderNumber,
  35. });
  36. factory SubjectReplyInfoJson.fromJson(Map<String, dynamic> json) => SubjectReplyInfoJson(
  37. id: json["id"] ,
  38. createTime: json["createTime"] ,
  39. updateTime: json["updateTime"] ,
  40. forumId: json["forumId"] ,
  41. forumName: json["forumName"] ,
  42. sectionId: json["sectionId"] ,
  43. sectionName: json["sectionName"] ,
  44. mainSectionId: json["mainSectionId"] ,
  45. mainSectionName: json["mainSectionName"],
  46. subjectId: json["subjectId"] ,
  47. title: json["title"] ,
  48. parentId: json["parentId"] ,
  49. content: json["content"] ,
  50. creatorName: json["creatorName"] ,
  51. creatorNameShort: json["creatorNameShort"] ,
  52. orderNumber: json["orderNumber"] ,
  53. );
  54. Map<String, dynamic> toJson() => {
  55. "id": id ,
  56. "createTime": createTime ,
  57. "updateTime": updateTime ,
  58. "forumId": forumId ,
  59. "forumName": forumName ,
  60. "sectionId": sectionId ,
  61. "sectionName": sectionName ,
  62. "mainSectionId": mainSectionId ,
  63. "mainSectionName": mainSectionName ,
  64. "subjectId": subjectId ,
  65. "title": title ,
  66. "parentId": parentId ,
  67. "content": content ,
  68. "creatorName": creatorName ,
  69. "creatorNameShort": creatorNameShort ,
  70. "orderNumber": orderNumber ,
  71. };
  72. }