Files
gridpilot.gg/apps/website/lib/view-models/RaceWithSOFViewModel.ts
2026-01-12 01:01:49 +01:00

13 lines
356 B
TypeScript

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;
}
}