section_permission_info.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /// 板块权限对象
  2. class SectionPermissionInfo {
  3. SectionPermissionInfo({
  4. this.subjectPublishAble,
  5. this.subjectAuditAble,
  6. this.subjectManageAble,
  7. this.subjectRecommendAble,
  8. this.subjectStickAble,
  9. this.subjectCreamAble,
  10. this.replyPublishAble,
  11. this.replyAuditAble,
  12. this.replyManageAble,
  13. this.sectionManageAble,
  14. this.sectionPermissoinManageAble,
  15. this.sectionConfigManageAble,
  16. });
  17. bool? subjectPublishAble; // 发帖权限
  18. bool? subjectAuditAble;
  19. bool? subjectManageAble;
  20. bool? subjectRecommendAble;
  21. bool? subjectStickAble;
  22. bool? subjectCreamAble;
  23. bool? replyPublishAble;
  24. bool? replyAuditAble;
  25. bool? replyManageAble;
  26. bool? sectionManageAble;
  27. bool? sectionPermissoinManageAble;
  28. bool? sectionConfigManageAble;
  29. factory SectionPermissionInfo.fromJson(Map<String, dynamic> json) =>
  30. SectionPermissionInfo(
  31. subjectPublishAble: json["subjectPublishAble"],
  32. subjectAuditAble: json["subjectAuditAble"],
  33. subjectManageAble: json["subjectManageAble"],
  34. subjectRecommendAble: json["subjectRecommendAble"],
  35. subjectStickAble: json["subjectStickAble"],
  36. subjectCreamAble: json["subjectCreamAble"],
  37. replyPublishAble: json["replyPublishAble"],
  38. replyAuditAble: json["replyAuditAble"],
  39. replyManageAble: json["replyManageAble"],
  40. sectionManageAble: json["sectionManageAble"],
  41. sectionPermissoinManageAble: json["sectionPermissoinManageAble"],
  42. sectionConfigManageAble: json["sectionConfigManageAble"],
  43. );
  44. Map<String, dynamic> toJson() => {
  45. "subjectPublishAble": subjectPublishAble,
  46. "subjectAuditAble": subjectAuditAble,
  47. "subjectManageAble": subjectManageAble,
  48. "subjectRecommendAble": subjectRecommendAble,
  49. "subjectStickAble": subjectStickAble,
  50. "subjectCreamAble": subjectCreamAble,
  51. "replyPublishAble": replyPublishAble,
  52. "replyAuditAble": replyAuditAble,
  53. "replyManageAble": replyManageAble,
  54. "sectionManageAble": sectionManageAble,
  55. "sectionPermissoinManageAble": sectionPermissoinManageAble,
  56. "sectionConfigManageAble": sectionConfigManageAble,
  57. };
  58. }