folder_info.dart 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. class FolderInfo {
  2. FolderInfo({
  3. this.attachmentCount,
  4. this.size,
  5. this.folderCount,
  6. this.id,
  7. this.person,
  8. this.name,
  9. this.superior,
  10. this.status,
  11. this.lastUpdateTime,
  12. this.createTime,
  13. this.updateTime,
  14. this.fileId,
  15. this.isAdmin,
  16. this.isEditor,
  17. this.isZone,
  18. this.zoneId
  19. });
  20. int? attachmentCount;
  21. int? size;
  22. int? folderCount;
  23. String? id;
  24. String? person;
  25. String? name;
  26. String? superior;
  27. String? status;
  28. String? lastUpdateTime;
  29. String? createTime;
  30. String? updateTime;
  31. String? fileId; //分享对象的时候这个代表文件原始id
  32. // v3 版本字段
  33. bool? isAdmin;
  34. bool? isEditor;
  35. bool? isZone;
  36. String? zoneId;
  37. factory FolderInfo.fromJson(Map<String, dynamic> json) => FolderInfo(
  38. attachmentCount: json["attachmentCount"],
  39. size: json["size"],
  40. folderCount: json["folderCount"],
  41. id: json["id"],
  42. person: json["person"],
  43. name: json["name"],
  44. superior: json["superior"],
  45. status: json["status"],
  46. lastUpdateTime: json["lastUpdateTime"],
  47. createTime: json["createTime"],
  48. updateTime: json["updateTime"],
  49. fileId: json["fileId"],
  50. isAdmin: json["isAdmin"],
  51. isEditor: json["isEditor"],
  52. isZone: json["isZone"],
  53. zoneId: json["zoneId"],
  54. );
  55. Map<String, dynamic> toJson() => {
  56. "attachmentCount": attachmentCount,
  57. "size": size,
  58. "folderCount": folderCount,
  59. "id": id,
  60. "person": person,
  61. "name": name,
  62. "superior": superior,
  63. "status": status,
  64. "lastUpdateTime": lastUpdateTime,
  65. "createTime": createTime,
  66. "updateTime": updateTime,
  67. "fileId": fileId,
  68. "isAdmin": isAdmin,
  69. "isEditor": isEditor,
  70. "isZone": isZone,
  71. "zoneId": zoneId,
  72. };
  73. }