Fixed toJSON issues
This commit is contained in:
parent
90b13629b4
commit
a51f2826f6
@ -41,7 +41,12 @@ export class Video {
|
|||||||
durationInSec: number;
|
durationInSec: number;
|
||||||
uploadedAt?: string;
|
uploadedAt?: string;
|
||||||
views: number;
|
views: number;
|
||||||
thumbnail?: Thumbnail;
|
thumbnail?: {
|
||||||
|
id: string | undefined;
|
||||||
|
width: number | undefined;
|
||||||
|
height: number | undefined;
|
||||||
|
url: string | undefined;
|
||||||
|
};
|
||||||
channel?: Channel;
|
channel?: Channel;
|
||||||
videos?: Video[];
|
videos?: Video[];
|
||||||
likes: number;
|
likes: number;
|
||||||
@ -87,7 +92,7 @@ export class Video {
|
|||||||
durationInSec: this.durationInSec,
|
durationInSec: this.durationInSec,
|
||||||
durationRaw: this.durationRaw,
|
durationRaw: this.durationRaw,
|
||||||
uploadedAt: this.uploadedAt,
|
uploadedAt: this.uploadedAt,
|
||||||
thumbnail: this.thumbnail?.toJSON(),
|
thumbnail: this.thumbnail,
|
||||||
channel: {
|
channel: {
|
||||||
name: this.channel?.name as string,
|
name: this.channel?.name as string,
|
||||||
id: this.channel?.id as string,
|
id: this.channel?.id as string,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user