copyWithWrapped method

DeviceMigrationLogDTO copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<DeviceMigrationStatusDTO?>? status,
  3. Wrapped<bool?>? hasSentMigrateCommand,
  4. Wrapped<String?>? errorMessage,
  5. Wrapped<DateTime?>? migrationDate,
  6. Wrapped<DeviceDataDTO?>? device,
  7. Wrapped<DeviceMigrationRequestDTO?>? request,
  8. Wrapped<String?>? detailsSnapshot,
  9. Wrapped<String?>? eventsSnapshot,
  10. 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));
}