|
|
|
|
@ -129,26 +129,26 @@ class AssetByIdModel {
|
|
|
|
|
if (json['multiAssets'] != null) {
|
|
|
|
|
multiAssets = <MultiAssets>[];
|
|
|
|
|
json['multiAssets'].forEach((v) {
|
|
|
|
|
multiAssets!.add(new MultiAssets.fromJson(v));
|
|
|
|
|
multiAssets!.add(MultiAssets.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
id = json['id'];
|
|
|
|
|
modelDefinition = json['modelDefinition'] != null ? new ModelDefinition.fromJson(json['modelDefinition']) : null;
|
|
|
|
|
modelDefinition = json['modelDefinition'] != null ? ModelDefinition.fromJson(json['modelDefinition']) : null;
|
|
|
|
|
supplier = json['supplier'] != null ? Suppliers.fromJson(json['supplier']) : null;
|
|
|
|
|
ipAddress = json['ipAddress'];
|
|
|
|
|
macAddress = json['macAddress'];
|
|
|
|
|
portNumber = json['portNumber'];
|
|
|
|
|
assetReplace = json['assetReplace'] != null ? new AssetReplace.fromJson(json['assetReplace']) : null;
|
|
|
|
|
assetReplace = json['assetReplace'] != null ? AssetReplace.fromJson(json['assetReplace']) : null;
|
|
|
|
|
oldAsset = json['oldAsset'] != null ? AssetInfo.fromJson(json['oldAsset']) : null;
|
|
|
|
|
isParent = json['isParent'] != null ? new AssetReplace.fromJson(json['isParent']) : null;
|
|
|
|
|
isParent = json['isParent'] != null ? AssetReplace.fromJson(json['isParent']) : null;
|
|
|
|
|
parentAsset = json['parentAsset'] != null ? AssetInfo.fromJson(json['parentAsset']) : null;
|
|
|
|
|
assetType = json['assetType'] != null ? new AssetReplace.fromJson(json['assetType']) : null;
|
|
|
|
|
assetType = json['assetType'] != null ? AssetReplace.fromJson(json['assetType']) : null;
|
|
|
|
|
demoRequest = json['demoRequest'];
|
|
|
|
|
missionCritical = json['missionCritical'];
|
|
|
|
|
site = json['site'] != null ? new Site.fromJson(json['site']) : null;
|
|
|
|
|
building = json['building'] != null ? new AssetReplace.fromJson(json['building']) : null;
|
|
|
|
|
floor = json['floor'] != null ? new AssetReplace.fromJson(json['floor']) : null;
|
|
|
|
|
department = json['department'] != null ? new Department.fromJson(json['department']) : null;
|
|
|
|
|
site = json['site'] != null ? Site.fromJson(json['site']) : null;
|
|
|
|
|
building = json['building'] != null ? AssetReplace.fromJson(json['building']) : null;
|
|
|
|
|
floor = json['floor'] != null ? AssetReplace.fromJson(json['floor']) : null;
|
|
|
|
|
department = json['department'] != null ? Department.fromJson(json['department']) : null;
|
|
|
|
|
room = json['room'] != null ? Lookup.fromJson(json['room']) : null;
|
|
|
|
|
testsDay = json['testsDay'];
|
|
|
|
|
purchasingPrice = json['purchasingPrice'];
|
|
|
|
|
@ -162,8 +162,8 @@ class AssetByIdModel {
|
|
|
|
|
budgetYear = json['budgetYear'];
|
|
|
|
|
lastPOPrice = json['lastPOPrice'];
|
|
|
|
|
commissioningStatus = json['commissioningStatus'] != null ? Lookup.fromJson(json['commissioningStatus']) : null;
|
|
|
|
|
originDepartment = json['originDepartment'] != null ? new Department.fromJson(json['originDepartment']) : null;
|
|
|
|
|
originSite = json['originSite'] != null ? new Site.fromJson(json['originSite']) : null;
|
|
|
|
|
originDepartment = json['originDepartment'] != null ? Department.fromJson(json['originDepartment']) : null;
|
|
|
|
|
originSite = json['originSite'] != null ? Site.fromJson(json['originSite']) : null;
|
|
|
|
|
productionDate = json['productionDate'];
|
|
|
|
|
edd = json['edd'];
|
|
|
|
|
technicalInspectionDate = json['technicalInspectionDate'];
|
|
|
|
|
@ -204,97 +204,97 @@ class AssetByIdModel {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
if (this.multiAssets != null) {
|
|
|
|
|
data['multiAssets'] = this.multiAssets!.map((v) => v.toJson()).toList();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
if (multiAssets != null) {
|
|
|
|
|
data['multiAssets'] = multiAssets!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
if (this.modelDefinition != null) {
|
|
|
|
|
data['modelDefinition'] = this.modelDefinition?.toJson();
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
if (modelDefinition != null) {
|
|
|
|
|
data['modelDefinition'] = modelDefinition?.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.supplier != null) {
|
|
|
|
|
data['supplier'] = this.supplier?.toJson();
|
|
|
|
|
if (supplier != null) {
|
|
|
|
|
data['supplier'] = supplier?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['ipAddress'] = this.ipAddress;
|
|
|
|
|
data['macAddress'] = this.macAddress;
|
|
|
|
|
data['portNumber'] = this.portNumber;
|
|
|
|
|
if (this.assetReplace != null) {
|
|
|
|
|
data['assetReplace'] = this.assetReplace?.toJson();
|
|
|
|
|
data['ipAddress'] = ipAddress;
|
|
|
|
|
data['macAddress'] = macAddress;
|
|
|
|
|
data['portNumber'] = portNumber;
|
|
|
|
|
if (assetReplace != null) {
|
|
|
|
|
data['assetReplace'] = assetReplace?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['oldAsset'] = this.oldAsset?.toJson();
|
|
|
|
|
if (this.isParent != null) {
|
|
|
|
|
data['isParent'] = this.isParent?.toJson();
|
|
|
|
|
data['oldAsset'] = oldAsset?.toJson();
|
|
|
|
|
if (isParent != null) {
|
|
|
|
|
data['isParent'] = isParent?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['parentAsset'] = this.parentAsset?.toJson();
|
|
|
|
|
if (this.assetType != null) {
|
|
|
|
|
data['assetType'] = this.assetType?.toJson();
|
|
|
|
|
data['parentAsset'] = parentAsset?.toJson();
|
|
|
|
|
if (assetType != null) {
|
|
|
|
|
data['assetType'] = assetType?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['demoRequest'] = this.demoRequest;
|
|
|
|
|
data['missionCritical'] = this.missionCritical;
|
|
|
|
|
if (this.site != null) {
|
|
|
|
|
data['site'] = this.site?.toJson();
|
|
|
|
|
data['demoRequest'] = demoRequest;
|
|
|
|
|
data['missionCritical'] = missionCritical;
|
|
|
|
|
if (site != null) {
|
|
|
|
|
data['site'] = site?.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.building != null) {
|
|
|
|
|
data['building'] = this.building?.toJson();
|
|
|
|
|
if (building != null) {
|
|
|
|
|
data['building'] = building?.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.floor != null) {
|
|
|
|
|
data['floor'] = this.floor?.toJson();
|
|
|
|
|
if (floor != null) {
|
|
|
|
|
data['floor'] = floor?.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.department != null) {
|
|
|
|
|
data['department'] = this.department?.toJson();
|
|
|
|
|
if (department != null) {
|
|
|
|
|
data['department'] = department?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['room'] = this.room?.toJson();
|
|
|
|
|
data['testsDay'] = this.testsDay;
|
|
|
|
|
data['purchasingPrice'] = this.purchasingPrice;
|
|
|
|
|
data['nbv'] = this.nbv;
|
|
|
|
|
data['currency'] = this.currency;
|
|
|
|
|
data['poDate'] = this.poDate;
|
|
|
|
|
data['poNo'] = this.poNo;
|
|
|
|
|
data['invoiceNumber'] = this.invoiceNumber;
|
|
|
|
|
data['invoiceDate'] = this.invoiceDate;
|
|
|
|
|
data['replacementDate'] = this.replacementDate;
|
|
|
|
|
data['budgetYear'] = this.budgetYear;
|
|
|
|
|
data['lastPOPrice'] = this.lastPOPrice;
|
|
|
|
|
data['commissioningStatus'] = this.commissioningStatus?.toJson();
|
|
|
|
|
if (this.originDepartment != null) {
|
|
|
|
|
data['originDepartment'] = this.originDepartment?.toJson();
|
|
|
|
|
data['room'] = room?.toJson();
|
|
|
|
|
data['testsDay'] = testsDay;
|
|
|
|
|
data['purchasingPrice'] = purchasingPrice;
|
|
|
|
|
data['nbv'] = nbv;
|
|
|
|
|
data['currency'] = currency;
|
|
|
|
|
data['poDate'] = poDate;
|
|
|
|
|
data['poNo'] = poNo;
|
|
|
|
|
data['invoiceNumber'] = invoiceNumber;
|
|
|
|
|
data['invoiceDate'] = invoiceDate;
|
|
|
|
|
data['replacementDate'] = replacementDate;
|
|
|
|
|
data['budgetYear'] = budgetYear;
|
|
|
|
|
data['lastPOPrice'] = lastPOPrice;
|
|
|
|
|
data['commissioningStatus'] = commissioningStatus?.toJson();
|
|
|
|
|
if (originDepartment != null) {
|
|
|
|
|
data['originDepartment'] = originDepartment?.toJson();
|
|
|
|
|
}
|
|
|
|
|
if (this.originSite != null) {
|
|
|
|
|
data['originSite'] = this.originSite?.toJson();
|
|
|
|
|
if (originSite != null) {
|
|
|
|
|
data['originSite'] = originSite?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['productionDate'] = this.productionDate;
|
|
|
|
|
data['edd'] = this.edd;
|
|
|
|
|
data['technicalInspectionDate'] = this.technicalInspectionDate;
|
|
|
|
|
data['deliveryInspectionDate'] = this.deliveryInspectionDate;
|
|
|
|
|
data['endUserAcceptanceDate'] = this.endUserAcceptanceDate;
|
|
|
|
|
data['technicalAcceptanceDate'] = this.technicalAcceptanceDate;
|
|
|
|
|
data['finalAcceptanceDate'] = this.finalAcceptanceDate;
|
|
|
|
|
data['installationDate'] = this.installationDate;
|
|
|
|
|
data['siteWarrantyMonthNo'] = this.siteWarrantyMonthNo;
|
|
|
|
|
data['extendedWarrantyMonthNo'] = this.extendedWarrantyMonthNo;
|
|
|
|
|
data['remainderWarrantyMonthNo'] = this.remainderWarrantyMonthNo;
|
|
|
|
|
data['eomWarrantyMonthsNo'] = this.eomWarrantyMonthsNo;
|
|
|
|
|
data['warrantyValue'] = this.warrantyValue;
|
|
|
|
|
data['warrantyEndDate'] = this.warrantyEndDate;
|
|
|
|
|
data['warrantyContractConditions'] = this.warrantyContractConditions;
|
|
|
|
|
if (this.technicalGuidanceBooks != null) {
|
|
|
|
|
data['technicalGuidanceBooks'] = this.technicalGuidanceBooks!.map((v) => v).toList();
|
|
|
|
|
data['productionDate'] = productionDate;
|
|
|
|
|
data['edd'] = edd;
|
|
|
|
|
data['technicalInspectionDate'] = technicalInspectionDate;
|
|
|
|
|
data['deliveryInspectionDate'] = deliveryInspectionDate;
|
|
|
|
|
data['endUserAcceptanceDate'] = endUserAcceptanceDate;
|
|
|
|
|
data['technicalAcceptanceDate'] = technicalAcceptanceDate;
|
|
|
|
|
data['finalAcceptanceDate'] = finalAcceptanceDate;
|
|
|
|
|
data['installationDate'] = installationDate;
|
|
|
|
|
data['siteWarrantyMonthNo'] = siteWarrantyMonthNo;
|
|
|
|
|
data['extendedWarrantyMonthNo'] = extendedWarrantyMonthNo;
|
|
|
|
|
data['remainderWarrantyMonthNo'] = remainderWarrantyMonthNo;
|
|
|
|
|
data['eomWarrantyMonthsNo'] = eomWarrantyMonthsNo;
|
|
|
|
|
data['warrantyValue'] = warrantyValue;
|
|
|
|
|
data['warrantyEndDate'] = warrantyEndDate;
|
|
|
|
|
data['warrantyContractConditions'] = warrantyContractConditions;
|
|
|
|
|
if (technicalGuidanceBooks != null) {
|
|
|
|
|
data['technicalGuidanceBooks'] = technicalGuidanceBooks!.map((v) => v).toList();
|
|
|
|
|
}
|
|
|
|
|
data['comment'] = this.comment;
|
|
|
|
|
data['isEnabled'] = this.isEnabled;
|
|
|
|
|
data['tagCode'] = this.tagCode;
|
|
|
|
|
if (this.assetAttachments != null) {
|
|
|
|
|
data['assetAttachments'] = this.assetAttachments!.map((v) => v).toList();
|
|
|
|
|
data['comment'] = comment;
|
|
|
|
|
data['isEnabled'] = isEnabled;
|
|
|
|
|
data['tagCode'] = tagCode;
|
|
|
|
|
if (assetAttachments != null) {
|
|
|
|
|
data['assetAttachments'] = assetAttachments!.map((v) => v).toList();
|
|
|
|
|
}
|
|
|
|
|
data['retirementTypeName'] = this.retirementTypeName;
|
|
|
|
|
data['retirementStatusName'] = this.retirementStatusName;
|
|
|
|
|
data['retirementDate'] = this.retirementDate;
|
|
|
|
|
if (this.assetGroup != null) {
|
|
|
|
|
data['assetGroup'] = this.assetGroup?.toJson();
|
|
|
|
|
data['retirementTypeName'] = retirementTypeName;
|
|
|
|
|
data['retirementStatusName'] = retirementStatusName;
|
|
|
|
|
data['retirementDate'] = retirementDate;
|
|
|
|
|
if (assetGroup != null) {
|
|
|
|
|
data['assetGroup'] = assetGroup?.toJson();
|
|
|
|
|
}
|
|
|
|
|
data['assetPhoto'] = this.assetPhoto;
|
|
|
|
|
data['nextPMDate'] = this.nextPMDate;
|
|
|
|
|
data['lastPMDate'] = this.lastPMDate;
|
|
|
|
|
data['assetPhoto'] = assetPhoto;
|
|
|
|
|
data['nextPMDate'] = nextPMDate;
|
|
|
|
|
data['lastPMDate'] = lastPMDate;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -313,10 +313,10 @@ class MultiAssets {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['assetSerialNo'] = this.assetSerialNo;
|
|
|
|
|
data['systemID'] = this.systemID;
|
|
|
|
|
data['assetNumber'] = this.assetNumber;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['assetSerialNo'] = assetSerialNo;
|
|
|
|
|
data['systemID'] = systemID;
|
|
|
|
|
data['assetNumber'] = assetNumber;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -375,30 +375,30 @@ class ModelDefinition {
|
|
|
|
|
if (json['suppliers'] != null) {
|
|
|
|
|
suppliers = <Suppliers>[];
|
|
|
|
|
json['suppliers'].forEach((v) {
|
|
|
|
|
suppliers!.add(new Suppliers.fromJson(v));
|
|
|
|
|
suppliers!.add(Suppliers.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['assetName'] = this.assetName;
|
|
|
|
|
data['assetDescription'] = this.assetDescription;
|
|
|
|
|
data['modelDefCode'] = this.modelDefCode;
|
|
|
|
|
data['modelName'] = this.modelName;
|
|
|
|
|
data['manufacturerId'] = this.manufacturerId;
|
|
|
|
|
data['manufacturerName'] = this.manufacturerName;
|
|
|
|
|
data['supplierName'] = this.supplierName;
|
|
|
|
|
data['replacementDate'] = this.replacementDate;
|
|
|
|
|
data['essentialEquipement'] = this.essentialEquipement;
|
|
|
|
|
data['businessCritical'] = this.businessCritical;
|
|
|
|
|
data['lifeSpan'] = this.lifeSpan;
|
|
|
|
|
if (this.modelDefRelatedDefects != null) {
|
|
|
|
|
data['modelDefRelatedDefects'] = this.modelDefRelatedDefects!.map((v) => v.toJson()).toList();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['assetName'] = assetName;
|
|
|
|
|
data['assetDescription'] = assetDescription;
|
|
|
|
|
data['modelDefCode'] = modelDefCode;
|
|
|
|
|
data['modelName'] = modelName;
|
|
|
|
|
data['manufacturerId'] = manufacturerId;
|
|
|
|
|
data['manufacturerName'] = manufacturerName;
|
|
|
|
|
data['supplierName'] = supplierName;
|
|
|
|
|
data['replacementDate'] = replacementDate;
|
|
|
|
|
data['essentialEquipement'] = essentialEquipement;
|
|
|
|
|
data['businessCritical'] = businessCritical;
|
|
|
|
|
data['lifeSpan'] = lifeSpan;
|
|
|
|
|
if (modelDefRelatedDefects != null) {
|
|
|
|
|
data['modelDefRelatedDefects'] = modelDefRelatedDefects!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
if (this.suppliers != null) {
|
|
|
|
|
data['suppliers'] = this.suppliers!.map((v) => v.toJson()).toList();
|
|
|
|
|
if (suppliers != null) {
|
|
|
|
|
data['suppliers'] = suppliers!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -416,9 +416,9 @@ class Suppliers {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['suppliername'] = this.suppliername;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['suppliername'] = suppliername;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -437,10 +437,10 @@ class AssetReplace {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['name'] = this.name;
|
|
|
|
|
data['value'] = this.value;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
data['value'] = value;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -460,18 +460,18 @@ class Site {
|
|
|
|
|
if (json['buildings'] != null) {
|
|
|
|
|
buildings = <Buildings>[];
|
|
|
|
|
json['buildings'].forEach((v) {
|
|
|
|
|
buildings!.add(new Buildings.fromJson(v));
|
|
|
|
|
buildings!.add(Buildings.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['customerCode'] = this.customerCode;
|
|
|
|
|
data['custName'] = this.custName;
|
|
|
|
|
if (this.buildings != null) {
|
|
|
|
|
data['buildings'] = this.buildings!.map((v) => v.toJson()).toList();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['customerCode'] = customerCode;
|
|
|
|
|
data['custName'] = custName;
|
|
|
|
|
if (buildings != null) {
|
|
|
|
|
data['buildings'] = buildings!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -492,18 +492,18 @@ class Buildings {
|
|
|
|
|
if (json['floors'] != null) {
|
|
|
|
|
floors = <Floors>[];
|
|
|
|
|
json['floors'].forEach((v) {
|
|
|
|
|
floors!.add(new Floors.fromJson(v));
|
|
|
|
|
floors!.add(Floors.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['name'] = this.name;
|
|
|
|
|
data['value'] = this.value;
|
|
|
|
|
if (this.floors != null) {
|
|
|
|
|
data['floors'] = this.floors!.map((v) => v.toJson()).toList();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
data['value'] = value;
|
|
|
|
|
if (floors != null) {
|
|
|
|
|
data['floors'] = floors!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -524,18 +524,18 @@ class Floors {
|
|
|
|
|
if (json['departments'] != null) {
|
|
|
|
|
departments = <Departments>[];
|
|
|
|
|
json['departments'].forEach((v) {
|
|
|
|
|
departments!.add(new Departments.fromJson(v));
|
|
|
|
|
departments!.add(Departments.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['name'] = this.name;
|
|
|
|
|
data['value'] = this.value;
|
|
|
|
|
if (this.departments != null) {
|
|
|
|
|
data['departments'] = this.departments!.map((v) => v.toJson()).toList();
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
data['value'] = value;
|
|
|
|
|
if (departments != null) {
|
|
|
|
|
data['departments'] = departments!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -553,9 +553,9 @@ class Departments {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['name'] = this.name;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -576,11 +576,11 @@ class Department {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['departmentName'] = this.departmentName;
|
|
|
|
|
data['departmentCode'] = this.departmentCode;
|
|
|
|
|
data['ntCode'] = this.ntCode;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['departmentName'] = departmentName;
|
|
|
|
|
data['departmentCode'] = departmentCode;
|
|
|
|
|
data['ntCode'] = ntCode;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -599,10 +599,10 @@ class AssetGroup {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
data['name'] = this.name;
|
|
|
|
|
data['code'] = this.code;
|
|
|
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
|
|
|
data['id'] = id;
|
|
|
|
|
data['name'] = name;
|
|
|
|
|
data['code'] = code;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|