blob: 67aacdc078245444d3dc34c63ab51b2f292b9d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
export interface SubscriptionResponseInterface {
'service-type': string
'is-permitted': boolean
}
export class ServiceType {
id: string;
name: string;
isPermitted: boolean;
constructor(id: string, subscription: SubscriptionResponseInterface){
this.id = id;
this.name = subscription['service-type'];
this.isPermitted = subscription['is-permitted'];
}
}
|