|
|
|
|
@ -88,6 +88,7 @@ class TrafRequestDataModel {
|
|
|
|
|
String? isEffectedName;
|
|
|
|
|
String? effectedServices;
|
|
|
|
|
int? isCombinationId;
|
|
|
|
|
int?requestTypeValue;
|
|
|
|
|
String? isCombinationName;
|
|
|
|
|
String? usedWithCombination;
|
|
|
|
|
String? comment;
|
|
|
|
|
@ -187,6 +188,7 @@ class TrafRequestDataModel {
|
|
|
|
|
this.isEffectedName,
|
|
|
|
|
this.effectedServices,
|
|
|
|
|
this.isCombinationId,
|
|
|
|
|
this.requestTypeValue,
|
|
|
|
|
this.isCombinationName,
|
|
|
|
|
this.usedWithCombination,
|
|
|
|
|
this.comment,
|
|
|
|
|
@ -301,6 +303,7 @@ class TrafRequestDataModel {
|
|
|
|
|
isEffectedName = json['isEffectedName'];
|
|
|
|
|
effectedServices = json['effectedServices'];
|
|
|
|
|
isCombinationId = json['isCombinationId'];
|
|
|
|
|
requestTypeValue = json['requestTypeValue'];
|
|
|
|
|
isCombinationName = json['isCombinationName'];
|
|
|
|
|
usedWithCombination = json['usedWithCombination'];
|
|
|
|
|
comment = json['comment'];
|
|
|
|
|
@ -418,6 +421,7 @@ class TrafRequestDataModel {
|
|
|
|
|
data['isEffectedName'] = this.isEffectedName;
|
|
|
|
|
data['effectedServices'] = this.effectedServices;
|
|
|
|
|
data['isCombinationId'] = this.isCombinationId;
|
|
|
|
|
data['requestTypeValue'] = this.requestTypeValue;
|
|
|
|
|
data['isCombinationName'] = this.isCombinationName;
|
|
|
|
|
data['usedWithCombination'] = this.usedWithCombination;
|
|
|
|
|
data['comment'] = this.comment;
|
|
|
|
|
@ -478,6 +482,67 @@ class TrafRequestDataModel {
|
|
|
|
|
data['modifiedDate'] = this.modifiedDate;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
Map<String, dynamic> toJsonNew() {
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['reqNo'] = reqNo;
|
|
|
|
|
data['reqCode'] = reqCode;
|
|
|
|
|
data['employeeId'] = employeeId;
|
|
|
|
|
data['positionId'] = positionId;
|
|
|
|
|
|
|
|
|
|
data['departments'] =
|
|
|
|
|
departments?.map((v) => v.toJson()).toList() ?? [];
|
|
|
|
|
if (this.trafDepartments != null) {
|
|
|
|
|
data['trafDepartments'] = this.trafDepartments!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data['siteId'] = siteId;
|
|
|
|
|
data['siteName'] = siteName;
|
|
|
|
|
data['requesterExtensionNumber'] = requesterExtensionNumber;
|
|
|
|
|
data['requesterExtensionName'] = requesterExtensionName;
|
|
|
|
|
data['requesterExtensionPositionId'] = requesterExtensionPositionId;
|
|
|
|
|
|
|
|
|
|
data['requestTypeId'] = requestTypeId;
|
|
|
|
|
|
|
|
|
|
data['assetNDId'] = assetNDId;
|
|
|
|
|
data['assetId'] = assetId;
|
|
|
|
|
data['qty'] = qty;
|
|
|
|
|
|
|
|
|
|
data['purposeAnswer'] = purposeAnswer;
|
|
|
|
|
data['currentPractise'] = currentPractise;
|
|
|
|
|
|
|
|
|
|
data['censusQ1'] = censusQ1;
|
|
|
|
|
data['censusQ2'] = censusQ2;
|
|
|
|
|
data['censusQ3'] = censusQ3;
|
|
|
|
|
data['censusQ4'] = censusQ4;
|
|
|
|
|
|
|
|
|
|
data['isFromMobile'] = isFromMobile;
|
|
|
|
|
|
|
|
|
|
data['trafContacts'] =
|
|
|
|
|
trafContacts?.map((v) => v.toJson()).toList() ?? [];
|
|
|
|
|
|
|
|
|
|
data['usingSolelyOrSharedId'] = usingSolelyOrSharedId;
|
|
|
|
|
|
|
|
|
|
data['isEffectedId'] = isEffectedId;
|
|
|
|
|
data['effectedServices'] = effectedServices;
|
|
|
|
|
|
|
|
|
|
data['isCombinationId'] = isCombinationId;
|
|
|
|
|
data['usedWithCombination'] = usedWithCombination;
|
|
|
|
|
|
|
|
|
|
data['comment'] = comment;
|
|
|
|
|
|
|
|
|
|
data['isBudgetId'] = isBudgetId;
|
|
|
|
|
|
|
|
|
|
data['attachments'] =
|
|
|
|
|
attachments?.map((v) => v.toJson()).toList() ?? [];
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class TrafContacts {
|
|
|
|
|
|