You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/modules/traf_module/asset_analytics_model.dart

173 lines
5.5 KiB
Dart

class AssetAnalytics {
num? assetId;
String? assetNumber;
String? assetName;
num? lastPrice;
String? lastPONo;
String? lastPODate;
num? sameAssetQuantity;
String? slaStatus;
String? contractNumber;
String? contractStartDate;
String? contractEndDate;
num? assetAgeInDays;
String? assetAgeDescription;
num? totalMaintenanceCost;
num? sparePartCost;
num? laborCost;
num? exchangeCost;
num? travelCost;
num? netBookValue;
num? purchasedPrice;
num? lifeSpan;
num? mtbf;
String? mtbfDescription;
num? totalCMWorkOrders;
num? downTimeHours;
String? downTimeDescription;
num? upTimeHours;
String? upTimeDescription;
num? operationHours;
String? installationDate;
String? modelName;
String? manufacturerName;
String? serialNumber;
String? departmentName;
String? siteName;
num? id;
String? createdBy;
String? createdDate;
String? modifiedBy;
String? modifiedDate;
AssetAnalytics(
{this.assetId,
this.assetNumber,
this.assetName,
this.lastPrice,
this.lastPONo,
this.lastPODate,
this.sameAssetQuantity,
this.slaStatus,
this.contractNumber,
this.contractStartDate,
this.contractEndDate,
this.assetAgeInDays,
this.assetAgeDescription,
this.totalMaintenanceCost,
this.sparePartCost,
this.laborCost,
this.exchangeCost,
this.travelCost,
this.netBookValue,
this.purchasedPrice,
this.lifeSpan,
this.mtbf,
this.mtbfDescription,
this.totalCMWorkOrders,
this.downTimeHours,
this.downTimeDescription,
this.upTimeHours,
this.upTimeDescription,
this.operationHours,
this.installationDate,
this.modelName,
this.manufacturerName,
this.serialNumber,
this.departmentName,
this.siteName,
this.id,
this.createdBy,
this.createdDate,
this.modifiedBy,
this.modifiedDate});
AssetAnalytics.fromJson(Map<String, dynamic> json) {
assetId = json['assetId'];
assetNumber = json['assetNumber'];
assetName = json['assetName'];
lastPrice = json['lastPrice'];
lastPONo = json['lastPONo'];
lastPODate = json['lastPODate'];
sameAssetQuantity = json['sameAssetQuantity'];
slaStatus = json['slaStatus'];
contractNumber = json['contractNumber'];
contractStartDate = json['contractStartDate'];
contractEndDate = json['contractEndDate'];
assetAgeInDays = json['assetAgeInDays'];
assetAgeDescription = json['assetAgeDescription'];
totalMaintenanceCost = json['totalMaintenanceCost'];
sparePartCost = json['sparePartCost'];
laborCost = json['laborCost'];
exchangeCost = json['exchangeCost'];
travelCost = json['travelCost'];
netBookValue = json['netBookValue'];
purchasedPrice = json['purchasedPrice'];
lifeSpan = json['lifeSpan'];
mtbf = json['mtbf'];
mtbfDescription = json['mtbfDescription'];
totalCMWorkOrders = json['totalCMWorkOrders'];
downTimeHours = json['downTimeHours'];
downTimeDescription = json['downTimeDescription'];
upTimeHours = json['upTimeHours'];
upTimeDescription = json['upTimeDescription'];
operationHours = json['operationHours'];
installationDate = json['installationDate'];
modelName = json['modelName'];
manufacturerName = json['manufacturerName'];
serialNumber = json['serialNumber'];
departmentName = json['departmentName'];
siteName = json['siteName'];
id = json['id'];
createdBy = json['createdBy'];
createdDate = json['createdDate'];
modifiedBy = json['modifiedBy'];
modifiedDate = json['modifiedDate'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['assetId'] = this.assetId;
data['assetNumber'] = this.assetNumber;
data['assetName'] = this.assetName;
data['lastPrice'] = this.lastPrice;
data['lastPONo'] = this.lastPONo;
data['lastPODate'] = this.lastPODate;
data['sameAssetQuantity'] = this.sameAssetQuantity;
data['slaStatus'] = this.slaStatus;
data['contractNumber'] = this.contractNumber;
data['contractStartDate'] = this.contractStartDate;
data['contractEndDate'] = this.contractEndDate;
data['assetAgeInDays'] = this.assetAgeInDays;
data['assetAgeDescription'] = this.assetAgeDescription;
data['totalMaintenanceCost'] = this.totalMaintenanceCost;
data['sparePartCost'] = this.sparePartCost;
data['laborCost'] = this.laborCost;
data['exchangeCost'] = this.exchangeCost;
data['travelCost'] = this.travelCost;
data['netBookValue'] = this.netBookValue;
data['purchasedPrice'] = this.purchasedPrice;
data['lifeSpan'] = this.lifeSpan;
data['mtbf'] = this.mtbf;
data['mtbfDescription'] = this.mtbfDescription;
data['totalCMWorkOrders'] = this.totalCMWorkOrders;
data['downTimeHours'] = this.downTimeHours;
data['downTimeDescription'] = this.downTimeDescription;
data['upTimeHours'] = this.upTimeHours;
data['upTimeDescription'] = this.upTimeDescription;
data['operationHours'] = this.operationHours;
data['installationDate'] = this.installationDate;
data['modelName'] = this.modelName;
data['manufacturerName'] = this.manufacturerName;
data['serialNumber'] = this.serialNumber;
data['departmentName'] = this.departmentName;
data['siteName'] = this.siteName;
data['id'] = this.id;
data['createdBy'] = this.createdBy;
data['createdDate'] = this.createdDate;
data['modifiedBy'] = this.modifiedBy;
data['modifiedDate'] = this.modifiedDate;
return data;
}
}