From af5144ffa338f0d472bace40f7213fc5b072e1ed Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 12 Nov 2023 09:41:27 +0300 Subject: [PATCH] all request details model updated. --- lib/models/all_requests_and_count_model.dart | 44 +++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/lib/models/all_requests_and_count_model.dart b/lib/models/all_requests_and_count_model.dart index 115f0c72..aaff6111 100644 --- a/lib/models/all_requests_and_count_model.dart +++ b/lib/models/all_requests_and_count_model.dart @@ -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 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 toJson() { final Map data = new Map(); + 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; } }