Files
gridpilot.gg/apps/website/lib/view-models/RaceWithSOFViewModel.ts
2025-12-24 14:01:52 +01:00

13 lines
328 B
TypeScript

import { RaceWithSOFDTO } from '../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 = (dto as any).strengthOfField ?? null;
}
}