import { IContentType } from "./ContentType.interface"; export abstract class ContentType implements IContentType { readonly raw:any readonly type:string readonly content:any constructor(rawContentJson: any) { this.raw = rawContentJson this.type = rawContentJson['type'] this.content = rawContentJson[this.type] } abstract toHTML(): string; }