parent
2315d03044
commit
4e1aa84306
@ -0,0 +1,48 @@
|
||||
class KeyMangeAllKeyModel {
|
||||
int id;
|
||||
String code;
|
||||
String facilityName;
|
||||
int totalNum;
|
||||
int loanableNum;
|
||||
String correspondingPosition;
|
||||
String storageLocation;
|
||||
int status;
|
||||
String createDate;
|
||||
|
||||
KeyMangeAllKeyModel(
|
||||
{this.id,
|
||||
this.code,
|
||||
this.facilityName,
|
||||
this.totalNum,
|
||||
this.loanableNum,
|
||||
this.correspondingPosition,
|
||||
this.storageLocation,
|
||||
this.status,
|
||||
this.createDate});
|
||||
|
||||
KeyMangeAllKeyModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
code = json['code'];
|
||||
facilityName = json['facilityName'];
|
||||
totalNum = json['totalNum'];
|
||||
loanableNum = json['loanableNum'];
|
||||
correspondingPosition = json['correspondingPosition'];
|
||||
storageLocation = json['storageLocation'];
|
||||
status = json['status'];
|
||||
createDate = json['createDate'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['code'] = this.code;
|
||||
data['facilityName'] = this.facilityName;
|
||||
data['totalNum'] = this.totalNum;
|
||||
data['loanableNum'] = this.loanableNum;
|
||||
data['correspondingPosition'] = this.correspondingPosition;
|
||||
data['storageLocation'] = this.storageLocation;
|
||||
data['status'] = this.status;
|
||||
data['createDate'] = this.createDate;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
import 'package:common_utils/common_utils.dart';
|
||||
|
||||
class KeyManageRecordListModel {
|
||||
int id;
|
||||
String code;
|
||||
int status;
|
||||
String facilityName;
|
||||
String correspondingPosition;
|
||||
String storageLocation;
|
||||
String auditDate;
|
||||
String reason;
|
||||
|
||||
KeyManageRecordListModel(
|
||||
{this.id,
|
||||
this.code,
|
||||
this.status,
|
||||
this.facilityName,
|
||||
this.correspondingPosition,
|
||||
this.storageLocation,
|
||||
this.auditDate,
|
||||
this.reason});
|
||||
|
||||
KeyManageRecordListModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
code = json['code'];
|
||||
status = json['status'];
|
||||
facilityName = json['facilityName'];
|
||||
correspondingPosition = json['correspondingPosition'];
|
||||
storageLocation = json['storageLocation'];
|
||||
auditDate = json['auditDate'];
|
||||
reason = json['reason'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['code'] = this.code;
|
||||
data['status'] = this.status;
|
||||
data['facilityName'] = this.facilityName;
|
||||
data['correspondingPosition'] = this.correspondingPosition;
|
||||
data['storageLocation'] = this.storageLocation;
|
||||
data['auditDate'] = this.auditDate;
|
||||
data['reason'] = this.reason;
|
||||
return data;
|
||||
}
|
||||
|
||||
String get auditDateString => DateUtil.formatDateStr(this.auditDate,format: 'yyyy-MM-dd HH:mm');
|
||||
}
|
Loading…
Reference in new issue