|
|
|
import 'package:huixiang/retrofit/data/data_type.dart';
|
|
|
|
|
|
|
|
class UploadResult {
|
|
|
|
UploadResult();
|
|
|
|
String id;
|
|
|
|
String createTime;
|
|
|
|
String createUser;
|
|
|
|
String updateTime;
|
|
|
|
String updateUser;
|
|
|
|
DataType dataType;
|
|
|
|
String submittedFileName;
|
|
|
|
String treePath;
|
|
|
|
int grade;
|
|
|
|
bool isDelete;
|
|
|
|
String folderId;
|
|
|
|
String url;
|
|
|
|
String size;
|
|
|
|
String folderName;
|
|
|
|
dynamic group;
|
|
|
|
String path;
|
|
|
|
String relativePath;
|
|
|
|
dynamic fileMd5;
|
|
|
|
String contextType;
|
|
|
|
String filename;
|
|
|
|
String ext;
|
|
|
|
String icon;
|
|
|
|
String createMonth;
|
|
|
|
String createWeek;
|
|
|
|
String createDay;
|
|
|
|
|
|
|
|
factory UploadResult.fromJson(Map<String, dynamic> json) => UploadResult()
|
|
|
|
..id = json['id'] as String
|
|
|
|
..createTime = json['createTime'] as String
|
|
|
|
..createUser = json['createUser'] as String
|
|
|
|
..updateTime = json['updateTime'] as String
|
|
|
|
..updateUser = json['updateUser'] as String
|
|
|
|
..dataType = json['dataType'] == null
|
|
|
|
? null
|
|
|
|
: DataType.fromJson(json['dataType'] as Map<String, dynamic>)
|
|
|
|
..submittedFileName = json['submittedFileName'] as String
|
|
|
|
..treePath = json['treePath'] as String
|
|
|
|
..grade = json['grade'] as int
|
|
|
|
..isDelete = json['isDelete'] as bool
|
|
|
|
..folderId = json['folderId'] as String
|
|
|
|
..url = json['url'] as String
|
|
|
|
..size = json['size'] as String
|
|
|
|
..folderName = json['folderName'] as String
|
|
|
|
..group = json['group']
|
|
|
|
..path = json['path'] as String
|
|
|
|
..relativePath = json['relativePath'] as String
|
|
|
|
..fileMd5 = json['fileMd5']
|
|
|
|
..contextType = json['contextType'] as String
|
|
|
|
..filename = json['filename'] as String
|
|
|
|
..ext = json['ext'] as String
|
|
|
|
..icon = json['icon'] as String
|
|
|
|
..createMonth = json['createMonth'] as String
|
|
|
|
..createWeek = json['createWeek'] as String
|
|
|
|
..createDay = json['createDay'] as String;
|
|
|
|
Map<String, dynamic> toJson() => <String, dynamic>{
|
|
|
|
'id': this.id,
|
|
|
|
'createTime': this.createTime,
|
|
|
|
'createUser': this.createUser,
|
|
|
|
'updateTime': this.updateTime,
|
|
|
|
'updateUser': this.updateUser,
|
|
|
|
'dataType': this.dataType.toJson(),
|
|
|
|
'submittedFileName': this.submittedFileName,
|
|
|
|
'treePath': this.treePath,
|
|
|
|
'grade': this.grade,
|
|
|
|
'isDelete': this.isDelete,
|
|
|
|
'folderId': this.folderId,
|
|
|
|
'url': this.url,
|
|
|
|
'size': this.size,
|
|
|
|
'folderName': this.folderName,
|
|
|
|
'group': this.group,
|
|
|
|
'path': this.path,
|
|
|
|
'relativePath': this.relativePath,
|
|
|
|
'fileMd5': this.fileMd5,
|
|
|
|
'contextType': this.contextType,
|
|
|
|
'filename': this.filename,
|
|
|
|
'ext': this.ext,
|
|
|
|
'icon': this.icon,
|
|
|
|
'createMonth': this.createMonth,
|
|
|
|
'createWeek': this.createWeek,
|
|
|
|
'createDay': this.createDay,
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|