From 14f86802d76ddd3f382e624a952aee2898670d3d Mon Sep 17 00:00:00 2001 From: Christophe Beveraggi Date: Fri, 29 Apr 2022 15:24:33 +0200 Subject: [PATCH] Add image asset embedded property --- src/assets/image-asset.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/image-asset.ts b/src/assets/image-asset.ts index 3b939fb..d5d1786 100644 --- a/src/assets/image-asset.ts +++ b/src/assets/image-asset.ts @@ -6,6 +6,8 @@ import { Asset } from './asset'; export class ImageAsset extends Asset { public data?: string; + public embedded?: number; + public id?: string; public height!: number; @@ -22,6 +24,7 @@ export class ImageAsset extends Asset { */ public fromJSON(json: Record): ImageAsset { this.data = json.p; + this.embedded = json.e; this.id = json.id; this.height = json.h; this.path = json.u; @@ -39,6 +42,7 @@ export class ImageAsset extends Asset { */ public toJSON(): Record { return { + e: this.embedded, h: this.height, id: this.id, p: this.data,