|
|
|
|
@ -10,44 +10,44 @@ class AllRequestsAndCount {
|
|
|
|
|
AllRequestsAndCount({this.countServiceRequest, this.countGasRefill, this.countAssetTransfer, this.countPPM, this.detailsStatusTotal, this.total, this.requestsDetails});
|
|
|
|
|
|
|
|
|
|
AllRequestsAndCount.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
countServiceRequest = json['countServiceRequest'] != null ? new CountServiceRequest.fromJson(json['countServiceRequest']) : null;
|
|
|
|
|
countGasRefill = json['countGasRefill'] != null ? new CountServiceRequest.fromJson(json['countGasRefill']) : null;
|
|
|
|
|
countAssetTransfer = json['countAssetTransfer'] != null ? new CountServiceRequest.fromJson(json['countAssetTransfer']) : null;
|
|
|
|
|
countPPM = json['countPPM'] != null ? new CountServiceRequest.fromJson(json['countPPM']) : null;
|
|
|
|
|
detailsStatusTotal = json['detailsStatusTotal'] != null ? new DetailsStatusTotal.fromJson(json['detailsStatusTotal']) : null;
|
|
|
|
|
total = json['total'] != null ? new CountServiceRequest.fromJson(json['total']) : null;
|
|
|
|
|
countServiceRequest = json['countServiceRequest'] != null ? CountServiceRequest.fromJson(json['countServiceRequest']) : null;
|
|
|
|
|
countGasRefill = json['countGasRefill'] != null ? CountServiceRequest.fromJson(json['countGasRefill']) : null;
|
|
|
|
|
countAssetTransfer = json['countAssetTransfer'] != null ? CountServiceRequest.fromJson(json['countAssetTransfer']) : null;
|
|
|
|
|
countPPM = json['countPPM'] != null ? CountServiceRequest.fromJson(json['countPPM']) : null;
|
|
|
|
|
detailsStatusTotal = json['detailsStatusTotal'] != null ? DetailsStatusTotal.fromJson(json['detailsStatusTotal']) : null;
|
|
|
|
|
total = json['total'] != null ? CountServiceRequest.fromJson(json['total']) : null;
|
|
|
|
|
if (json['requestsDetails'] != null) {
|
|
|
|
|
requestsDetails = <RequestsDetails>[];
|
|
|
|
|
json['requestsDetails'].forEach((v) {
|
|
|
|
|
requestsDetails.add(new RequestsDetails.fromJson(v));
|
|
|
|
|
requestsDetails.add(RequestsDetails.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
if (this.countServiceRequest != null) {
|
|
|
|
|
data['countServiceRequest'] = this.countServiceRequest.toJson();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
if (countServiceRequest != null) {
|
|
|
|
|
data['countServiceRequest'] = countServiceRequest.toJson();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.countGasRefill != null) {
|
|
|
|
|
data['countGasRefill'] = this.countGasRefill.toJson();
|
|
|
|
|
if (countGasRefill != null) {
|
|
|
|
|
data['countGasRefill'] = countGasRefill.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.countAssetTransfer != null) {
|
|
|
|
|
data['countAssetTransfer'] = this.countAssetTransfer.toJson();
|
|
|
|
|
if (countAssetTransfer != null) {
|
|
|
|
|
data['countAssetTransfer'] = countAssetTransfer.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.countPPM != null) {
|
|
|
|
|
data['countPPM'] = this.countPPM.toJson();
|
|
|
|
|
if (countPPM != null) {
|
|
|
|
|
data['countPPM'] = countPPM.toJson();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.detailsStatusTotal != null) {
|
|
|
|
|
data['detailsStatusTotal'] = this.detailsStatusTotal.toJson();
|
|
|
|
|
if (detailsStatusTotal != null) {
|
|
|
|
|
data['detailsStatusTotal'] = detailsStatusTotal.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.total != null) {
|
|
|
|
|
data['total'] = this.total.toJson();
|
|
|
|
|
if (total != null) {
|
|
|
|
|
data['total'] = total.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.requestsDetails != null) {
|
|
|
|
|
data['requestsDetails'] = this.requestsDetails.map((v) => v.toJson()).toList();
|
|
|
|
|
if (requestsDetails != null) {
|
|
|
|
|
data['requestsDetails'] = requestsDetails.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -63,8 +63,8 @@ class CountServiceRequest {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['count'] = this.count;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['count'] = count;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -83,10 +83,10 @@ class DetailsStatusTotal {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['open'] = this.open;
|
|
|
|
|
data['inProgress'] = this.inProgress;
|
|
|
|
|
data['closed'] = this.closed;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['open'] = open;
|
|
|
|
|
data['inProgress'] = inProgress;
|
|
|
|
|
data['closed'] = closed;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -156,26 +156,26 @@ class RequestsDetails {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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['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['code'] = this.code;
|
|
|
|
|
data['date'] = this.date;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['nameOfType'] = nameOfType;
|
|
|
|
|
data['priority'] = priority;
|
|
|
|
|
data['status'] = status;
|
|
|
|
|
data['assetName'] = assetName;
|
|
|
|
|
data['assetNo'] = assetNo;
|
|
|
|
|
data['assetSN'] = assetSN;
|
|
|
|
|
data['model'] = model;
|
|
|
|
|
data['supplier'] = supplier;
|
|
|
|
|
data['manufacturer'] = manufacturer;
|
|
|
|
|
data['requestType'] = requestType;
|
|
|
|
|
data['requestNo'] = requestNo;
|
|
|
|
|
data['gasType'] = gasType;
|
|
|
|
|
data['site'] = site;
|
|
|
|
|
data['statusReceiver'] = statusReceiver;
|
|
|
|
|
data['assetTransferFrom'] = assetTransferFrom;
|
|
|
|
|
data['assetTransferTo'] = assetTransferTo;
|
|
|
|
|
data['code'] = code;
|
|
|
|
|
data['date'] = date;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|