import { BaseResponse } from "../../../models/response/base.response"; import { CipherResponse } from "../../../vault/models/response/cipher.response"; import { CollectionResponse } from "../../../vault/models/response/collection.response"; export class OrganizationExportResponse extends BaseResponse { collections: CollectionResponse[]; ciphers: CipherResponse[]; constructor(response: any) { super(response); const collections = this.getResponseProperty("Collections"); if (collections != null) { this.collections = collections.map((c: any) => new CollectionResponse(c)); } const ciphers = this.getResponseProperty("Ciphers"); if (ciphers != null) { this.ciphers = ciphers.map((c: any) => new CipherResponse(c)); } } }