import { SecureNoteType } from "../../enums/secureNoteType"; import { SecureNote } from "../domain/secureNote"; import { ItemView } from "./itemView"; export class SecureNoteView extends ItemView { type: SecureNoteType = null; constructor(n?: SecureNote) { super(); if (!n) { return; } this.type = n.type; } get subTitle(): string { return null; } static fromJSON(obj: Partial): SecureNoteView { const view = new SecureNoteView(); view.type = obj.type; return view; } }