copyWithCompanion method
Implementation
DeviceResourceAuditData copyWithCompanion(DeviceResourceAuditCompanion data) {
return DeviceResourceAuditData(
id: data.id.present ? data.id.value : this.id,
createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt,
cpuUsage: data.cpuUsage.present ? data.cpuUsage.value : this.cpuUsage,
ramInMB: data.ramInMB.present ? data.ramInMB.value : this.ramInMB,
freeRamInMB:
data.freeRamInMB.present ? data.freeRamInMB.value : this.freeRamInMB,
storageInMB:
data.storageInMB.present ? data.storageInMB.value : this.storageInMB,
freeStorageInMB: data.freeStorageInMB.present
? data.freeStorageInMB.value
: this.freeStorageInMB,
);
}