view data fixes
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { RaceWithSOFDTO } from '@/lib/types/generated/RaceWithSOFDTO';
|
||||
|
||||
export class RaceWithSOFViewModel {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user