Files
gridpilot.gg/apps/website/lib/view-models/RaceWithSOFViewModel.ts
Marc Mintel d97f50ed72
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 6m4s
Contract Testing / contract-snapshot (pull_request) Has been skipped
view data fixes
2026-01-23 11:59:49 +01:00

16 lines
452 B
TypeScript

import { RaceWithSOFDTO } from '@/lib/types/generated/RaceWithSOFDTO';
import { ViewModel } from "../contracts/view-models/ViewModel";
export class RaceWithSOFViewModel extends ViewModel {
id: string;
track: string;
strengthOfField: number | null;
constructor(dto: RaceWithSOFDTO) {
super();
this.id = dto.id;
this.track = dto.track;
this.strengthOfField = 'strengthOfField' in dto ? dto.strengthOfField ?? null : null;
}
}