copyWith method
DeviceMigrationLogDTO
copyWith({ - int? id,
- DeviceMigrationStatusDTO? status,
- bool? hasSentMigrateCommand,
- String? errorMessage,
- DateTime? migrationDate,
- DeviceDataDTO? device,
- DeviceMigrationRequestDTO? request,
- String? detailsSnapshot,
- String? eventsSnapshot,
- String? alertsSnapshot,
})
Implementation
DeviceMigrationLogDTO copyWith(
{int? id,
enums.DeviceMigrationStatusDTO? status,
bool? hasSentMigrateCommand,
String? errorMessage,
DateTime? migrationDate,
DeviceDataDTO? device,
DeviceMigrationRequestDTO? request,
String? detailsSnapshot,
String? eventsSnapshot,
String? alertsSnapshot}) {
return DeviceMigrationLogDTO(
id: id ?? this.id,
status: status ?? this.status,
hasSentMigrateCommand:
hasSentMigrateCommand ?? this.hasSentMigrateCommand,
errorMessage: errorMessage ?? this.errorMessage,
migrationDate: migrationDate ?? this.migrationDate,
device: device ?? this.device,
request: request ?? this.request,
detailsSnapshot: detailsSnapshot ?? this.detailsSnapshot,
eventsSnapshot: eventsSnapshot ?? this.eventsSnapshot,
alertsSnapshot: alertsSnapshot ?? this.alertsSnapshot);
}