1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-31 07:33:40 +00:00
Files
jslib/common/src/models/data/policyData.ts
2021-12-16 13:36:21 +01:00

20 lines
461 B
TypeScript

import { PolicyResponse } from "../response/policyResponse";
import { PolicyType } from "../../enums/policyType";
export class PolicyData {
id: string;
organizationId: string;
type: PolicyType;
data: any;
enabled: boolean;
constructor(response: PolicyResponse) {
this.id = response.id;
this.organizationId = response.organizationId;
this.type = response.type;
this.data = response.data;
this.enabled = response.enabled;
}
}