view models
This commit is contained in:
@@ -6,11 +6,10 @@ import { CompleteOnboardingOutputDTO } from '../types/generated/CompleteOnboardi
|
||||
*/
|
||||
export class CompleteOnboardingViewModel implements CompleteOnboardingOutputDTO {
|
||||
success: boolean;
|
||||
driverId: string;
|
||||
driverId?: string;
|
||||
|
||||
constructor(dto: CompleteOnboardingOutputDTO & { driverId: string }) {
|
||||
constructor(dto: CompleteOnboardingOutputDTO) {
|
||||
this.success = dto.success;
|
||||
this.driverId = dto.driverId;
|
||||
}
|
||||
|
||||
/** UI-specific: Whether onboarding was successful */
|
||||
|
||||
Reference in New Issue
Block a user