13 lines
328 B
TypeScript
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;
|
|
}
|
|
} |