import { SchemaModel } from '@verb/src/libs/shared/base/base.model'; export class VideoFlagsModel implements SchemaModel { public deleted = false; public pending = false; public reported = false; public constructor(videoFlagsSchema?: VideoFlagsSchema) { if (videoFlagsSchema) { this.fromSchema(videoFlagsSchema); } } public fromSchema(videoFlagsSchema: VideoFlagsSchema) { this.deleted = videoFlagsSchema.deleted; this.pending = videoFlagsSchema.pending; this.reported = videoFlagsSchema.reported; } public toSchema(): VideoFlagsSchema { return { deleted: this.deleted, pending: this.pending, reported: this.reported, }; } } export interface VideoFlagsSchema { deleted: boolean; reported: boolean; pending: boolean; }