all request details model updated.

main_design2.0
Sikander Saleem 2 years ago
parent a024185229
commit af5144ffa3

@ -92,66 +92,90 @@ class DetailsStatusTotal {
}
class RequestsDetails {
int id;
String nameOfType;
String priority;
String status;
String statusReceiver;
String assetName;
String assetNo;
String assetSN;
String model;
String supplier;
String manufacturer;
String requestType;
String requestNo;
String gasType;
String site;
String statusReceiver;
String assetTransferFrom;
String assetTransferTo;
String assetSN;
String code;
String date;
RequestsDetails(
{this.nameOfType,
{this.id,
this.nameOfType,
this.priority,
this.status,
this.statusReceiver,
this.assetName,
this.assetNo,
this.assetSN,
this.model,
this.supplier,
this.manufacturer,
this.requestType,
this.requestNo,
this.gasType,
this.site,
this.statusReceiver,
this.assetTransferFrom,
this.assetTransferTo,
this.assetSN,
this.code});
this.code,
this.date});
RequestsDetails.fromJson(Map<String, dynamic> json) {
id = json['id'];
nameOfType = json['nameOfType'];
priority = json['priority'];
status = json['status'];
statusReceiver = json['statusReceiver'];
assetName = json['assetName'];
assetNo = json['assetNo'];
assetSN = json['assetSN'];
model = json['model'];
supplier = json['supplier'];
manufacturer = json['manufacturer'];
requestType = json['requestType'];
requestNo = json['requestNo'];
gasType = json['gasType'];
site = json['site'];
statusReceiver = json['statusReceiver'];
assetTransferFrom = json['assetTransferFrom'];
assetTransferTo = json['assetTransferTo'];
assetSN = json['assetSN'];
code = json['code'];
date = json['date'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['nameOfType'] = this.nameOfType;
data['priority'] = this.priority;
data['status'] = this.status;
data['statusReceiver'] = this.statusReceiver;
data['assetName'] = this.assetName;
data['assetNo'] = this.assetNo;
data['assetSN'] = this.assetSN;
data['model'] = this.model;
data['supplier'] = this.supplier;
data['manufacturer'] = this.manufacturer;
data['requestType'] = this.requestType;
data['requestNo'] = this.requestNo;
data['gasType'] = this.gasType;
data['site'] = this.site;
data['statusReceiver'] = this.statusReceiver;
data['assetTransferFrom'] = this.assetTransferFrom;
data['assetTransferTo'] = this.assetTransferTo;
data['assetSN'] = this.assetSN;
data['code'] = this.code;
data['date'] = this.date;
return data;
}
}

Loading…
Cancel
Save