share_post.dart 598 B

123456789101112131415161718192021
  1. class CloudDiskShareForm {
  2. String? shareType = "member"; //分享类型 member
  3. String? fileId ; //分享的文档id或者文件夹id
  4. List<String>? shareUserList; //分享给的用户列表
  5. List<String>? shareOrgList; //分享给的组织列表
  6. CloudDiskShareForm({
  7. this.shareType,
  8. this.fileId,
  9. this.shareOrgList,
  10. this.shareUserList
  11. });
  12. Map<String, dynamic> toJson() => {
  13. "shareType": shareType,
  14. "fileId": fileId,
  15. "shareOrgList": shareOrgList ?? [],
  16. "shareUserList": shareUserList ?? [],
  17. };
  18. }