2021-11-23 09:56:08 +05:30

23 lines
431 B
TypeScript

export class YouTubeThumbnail {
id: string;
url: string;
width: number;
height: number;
constructor(data: any) {
this.id = data.id;
this.url = data.url;
this.width = data.width;
this.height = data.height;
}
toJSON() {
return {
id: this.id,
url: this.url,
width: this.width,
height: this.height
};
}
}