/*
 * @Author: WuXiangNan
 * @Date: 2021-07-05 10:14:47
 * @LastEditors: WuXiangNan
 * @LastEditTime: 2021-07-08 17:53:14
 * @Description: 文件列表
 */

class FileList {
  String? id;
  String? cabinetDirectoryId;
  String? name;
  String? type;
  String? secretLevel;
  String? communityId;
  String? communityName;
  int? size;
  String? createAt;
  String? createByName;

  FileList({
    this.id,
    this.cabinetDirectoryId,
    this.type,
    this.name,
    this.secretLevel,
    this.size,
    this.communityId,
    this.communityName,
    this.createAt,
    this.createByName,
  });

  FileList.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});
    id = map['id'];
    cabinetDirectoryId = map['cabinetDirectoryId'];
    type = map['type'];
    name = map['name'];
    secretLevel = map['secretLevel'];
    size = map['size'];
    communityId = map['communityId'];
    communityName = map['communityName'];
    createAt = map['createAt'];
    createByName = map['createByName'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['id'] = this.id;
    json['cabinetDirectoryId'] = this.cabinetDirectoryId;
    json['type'] = this.type;
    json['name'] = this.name;
    json['secretLevel'] = this.secretLevel;
    json['size'] = this.size;
    json['communityId'] = this.communityId;
    json['communityName'] = this.communityName;
    json['createAt'] = this.createAt;
    json['createByName'] = this.createByName;

    return json;
  }
}
