mind_folder.dart 828 B

123456789101112131415161718192021222324252627282930313233
  1. class MindFolder {
  2. String? id;
  3. String? name;
  4. String? parentId;
  5. int? orderNumber;
  6. String? description;
  7. String? creator;
  8. String? creatorUnit;
  9. String? createTime;
  10. String? updateTime;
  11. String? sequence;
  12. List<MindFolder>? children;
  13. int? level;
  14. MindFolder.fromJson(Map<String, dynamic> json) {
  15. id = json['id'];
  16. name = json['name'];
  17. parentId = json['parentId'];
  18. orderNumber = json['orderNumber'];
  19. description = json['description'];
  20. creator = json['creator'];
  21. creatorUnit = json['creatorUnit'];
  22. createTime = json['createTime'];
  23. updateTime = json['updateTime'];
  24. sequence = json['sequence'];
  25. var list = json['children'] == null ? [] : json['children'] as List;
  26. children = list.map((mind) => MindFolder.fromJson(mind)).toList();
  27. }
  28. }