UNPKG

askui

Version:

Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on

17 lines (16 loc) 468 B
import { ImageReference } from './image-reference'; export class CacheEntryReference { constructor(image) { this.image = image; } static fromJson(json) { return new CacheEntryReference(json.image ? ImageReference.fromJson(json.image) : undefined); } toJson() { const jsonObject = {}; if (this.image !== undefined) { jsonObject['image'] = this.image.toJson(); } return jsonObject; } }