copyWithWrapped method
DeviceMigrationLogDTO
copyWithWrapped({ - Wrapped<int?>? id,
- Wrapped<DeviceMigrationStatusDTO?>? status,
- Wrapped<bool?>? hasSentMigrateCommand,
- Wrapped<String?>? errorMessage,
- Wrapped<DateTime?>? migrationDate,
- Wrapped<DeviceDataDTO?>? device,
- Wrapped<DeviceMigrationRequestDTO?>? request,
- Wrapped<String?>? detailsSnapshot,
- Wrapped<String?>? eventsSnapshot,
- Wrapped<String?>? alertsSnapshot,
})
Implementation
DeviceMigrationLogDTO copyWithWrapped(
{Wrapped<int?>? id,
Wrapped<enums.DeviceMigrationStatusDTO?>? status,
Wrapped<bool?>? hasSentMigrateCommand,
Wrapped<String?>? errorMessage,
Wrapped<DateTime?>? migrationDate,
Wrapped<DeviceDataDTO?>? device,
Wrapped<DeviceMigrationRequestDTO?>? request,
Wrapped<String?>? detailsSnapshot,
Wrapped<String?>? eventsSnapshot,
Wrapped<String?>? alertsSnapshot}) {
return DeviceMigrationLogDTO(
id: (id != null ? id.value : this.id),
status: (status != null ? status.value : this.status),
hasSentMigrateCommand: (hasSentMigrateCommand != null
? hasSentMigrateCommand.value
: this.hasSentMigrateCommand),
errorMessage:
(errorMessage != null ? errorMessage.value : this.errorMessage),
migrationDate:
(migrationDate != null ? migrationDate.value : this.migrationDate),
device: (device != null ? device.value : this.device),
request: (request != null ? request.value : this.request),
detailsSnapshot: (detailsSnapshot != null
? detailsSnapshot.value
: this.detailsSnapshot),
eventsSnapshot: (eventsSnapshot != null
? eventsSnapshot.value
: this.eventsSnapshot),
alertsSnapshot: (alertsSnapshot != null
? alertsSnapshot.value
: this.alertsSnapshot));
}