mirror of
https://github.com/bitwarden/cli
synced 2026-01-20 00:13:14 +00:00
pretty print json
This commit is contained in:
@@ -9,15 +9,12 @@ export class Collection {
|
||||
return view;
|
||||
}
|
||||
|
||||
name: string;
|
||||
organizationId: string;
|
||||
name: string;
|
||||
|
||||
constructor(o?: CollectionView) {
|
||||
if (o == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.name = o.name;
|
||||
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
|
||||
build(o: CollectionView) {
|
||||
this.organizationId = o.organizationId;
|
||||
this.name = o.name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user