import { SecureNoteType } from "../../enums/secureNoteType" ; import { SecureNoteView } from "../view/secureNoteView" ; import { SecureNote as SecureNoteDomain } from "../domain/secureNote" ; export class SecureNote { static template ( ) { const req = new SecureNote ( ) ; req . type = SecureNoteType . Generic ; return req ; } static toView ( req , view = new SecureNoteView ( ) ) { view . type = req . type ; return view ; } static toDomain ( req , view = new SecureNoteDomain ( ) ) { view . type = req . type ; return view ; } type : SecureNoteType ; constructor ( o ? ) { if ( o == null ) { return ; } this . type = o . type ; } }