subject_permission_info.dart 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ///
  2. /// 帖子权限对象
  3. ///
  4. class SubjectPermissionInfo {
  5. SubjectPermissionInfo({
  6. this.auditAble,
  7. this.editAble,
  8. this.manageAble,
  9. this.recommendAble,
  10. this.stickAble,
  11. this.creamAble,
  12. this.replyPublishAble,
  13. this.replyAuditAble,
  14. this.replyManageAble
  15. });
  16. bool? auditAble; // 用户是否可以审核该主题.
  17. bool? editAble; // 用户是否可以编辑该主题.
  18. bool? manageAble; // 用户是否可以管理该主题.
  19. bool? recommendAble; // 用户是否可以推荐该主题.
  20. bool? stickAble; // 用户是否可以置顶该主题.
  21. bool? creamAble; // 用户是否可以对该主题进行精华主题设置操作.
  22. bool? replyPublishAble; // 用户是否可以在该主题中进行回复操作.
  23. bool? replyAuditAble; // 用户是否可以在版块中对回复进行审核.
  24. bool? replyManageAble; // 用户是否可以在主题中对回复进行查询或者删除.
  25. factory SubjectPermissionInfo.fromJson(Map<String, dynamic> json) => SubjectPermissionInfo(
  26. auditAble: json["auditAble"] ,
  27. editAble: json["editAble"] ,
  28. manageAble: json["manageAble"] ,
  29. recommendAble: json["recommendAble"] ,
  30. stickAble: json["stickAble"] ,
  31. creamAble: json["creamAble"] ,
  32. replyPublishAble: json["replyPublishAble"] ,
  33. replyAuditAble: json["replyAuditAble"] ,
  34. replyManageAble: json["replyManageAble"]
  35. );
  36. Map<String, dynamic> toJson() => {
  37. "auditAble": auditAble ,
  38. "editAble": editAble ,
  39. "manageAble": manageAble ,
  40. "recommendAble": recommendAble ,
  41. "stickAble": stickAble ,
  42. "creamAble": creamAble ,
  43. "replyPublishAble": replyPublishAble ,
  44. "replyAuditAble": replyAuditAble ,
  45. "replyManageAble": replyManageAble ,
  46. };
  47. }