copyWith method

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