mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import { FolderView } from 'jslib/models/view/folderView';
|
|
|
|
export class Folder {
|
|
static toView(req: Folder, view = new FolderView()) {
|
|
view.name = req.name;
|
|
return view;
|
|
}
|
|
|
|
name: string;
|
|
|
|
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
|
|
build(o: FolderView) {
|
|
this.name = o.name;
|
|
}
|
|
}
|