import { RaceWithSOFDTO } from '@/lib/types/generated/RaceWithSOFDTO';

export class RaceWithSOFViewModel {
  id: string;
  track: string;
  strengthOfField: number | null;

  constructor(dto: RaceWithSOFDTO) {
    this.id = dto.id;
    this.track = dto.track;
    this.strengthOfField = 'strengthOfField' in dto ? dto.strengthOfField ?? null : null;
  }
}