copyWith method

DeviceResourceAuditData copyWith({
  1. int? id,
  2. DateTime? createdAt,
  3. double? cpuUsage,
  4. double? ramInMB,
  5. double? freeRamInMB,
  6. double? storageInMB,
  7. double? freeStorageInMB,
})

Implementation

DeviceResourceAuditData copyWith(
        {int? id,
        DateTime? createdAt,
        double? cpuUsage,
        double? ramInMB,
        double? freeRamInMB,
        double? storageInMB,
        double? freeStorageInMB}) =>
    DeviceResourceAuditData(
      id: id ?? this.id,
      createdAt: createdAt ?? this.createdAt,
      cpuUsage: cpuUsage ?? this.cpuUsage,
      ramInMB: ramInMB ?? this.ramInMB,
      freeRamInMB: freeRamInMB ?? this.freeRamInMB,
      storageInMB: storageInMB ?? this.storageInMB,
      freeStorageInMB: freeStorageInMB ?? this.freeStorageInMB,
    );