90 lines
2.3 KiB
Dart
Executable File
90 lines
2.3 KiB
Dart
Executable File
class MinePersonGetUploadFileInfoEntity {
|
|
int? errorCode;
|
|
String? description;
|
|
String? errorMsg;
|
|
Data? data;
|
|
|
|
MinePersonGetUploadFileInfoEntity(
|
|
{this.errorCode, this.description, this.errorMsg, this.data});
|
|
|
|
MinePersonGetUploadFileInfoEntity.fromJson(Map<String, dynamic> json) {
|
|
errorCode = json['errorCode'];
|
|
description = json['description'];
|
|
errorMsg = json['errorMsg'];
|
|
data = json['data'] != null ? Data.fromJson(json['data']) : null;
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['errorCode'] = errorCode;
|
|
data['description'] = description;
|
|
data['errorMsg'] = errorMsg;
|
|
if (this.data != null) {
|
|
data['data'] = this.data!.toJson();
|
|
}
|
|
return data;
|
|
}
|
|
}
|
|
|
|
class Data {
|
|
String? uploadUrl;
|
|
Map<String, dynamic>? formData;
|
|
String? fileUrl;
|
|
String? fileField;
|
|
|
|
Data({this.uploadUrl, this.formData, this.fileUrl, this.fileField});
|
|
|
|
Data.fromJson(Map<String, dynamic> json) {
|
|
uploadUrl = json['uploadUrl'];
|
|
formData = json['formData'];
|
|
fileUrl = json['fileUrl'];
|
|
fileField = json['fileField'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['uploadUrl'] = uploadUrl;
|
|
data['formData'] = formData;
|
|
data['fileUrl'] = fileUrl;
|
|
data['fileField'] = fileField;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
// class GetFormData {
|
|
// String? oSSAccessKeyId;
|
|
// String? host;
|
|
// String? policy;
|
|
// String? signature;
|
|
// int? expire;
|
|
// String? key;
|
|
//
|
|
// GetFormData(
|
|
// {this.oSSAccessKeyId,
|
|
// this.host,
|
|
// this.policy,
|
|
// this.signature,
|
|
// this.expire,
|
|
// this.key});
|
|
//
|
|
// GetFormData.fromJson(Map<String, dynamic> json) {
|
|
// oSSAccessKeyId = json['OSSAccessKeyId'];
|
|
// host = json['host'];
|
|
// policy = json['policy'];
|
|
// signature = json['signature'];
|
|
// expire = json['expire'];
|
|
// key = json['key'];
|
|
// }
|
|
//
|
|
// Map<String, dynamic> toJson() {
|
|
// final Map<String, dynamic> data = <String, dynamic>{};
|
|
// data['OSSAccessKeyId'] = oSSAccessKeyId;
|
|
// data['host'] = host;
|
|
// data['policy'] = policy;
|
|
// data['signature'] = signature;
|
|
// data['expire'] = expire;
|
|
// data['key'] = key;
|
|
// return data;
|
|
// }
|
|
// }
|