mirror of
https://github.com/bitwarden/jslib
synced 2025-12-23 19:53:55 +00:00
support camel or pascal case in API responses
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
export class TwoFactorAuthenticatorResponse {
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
export class TwoFactorAuthenticatorResponse extends BaseResponse {
|
||||
enabled: boolean;
|
||||
key: string;
|
||||
|
||||
constructor(response: any) {
|
||||
this.enabled = response.Enabled;
|
||||
this.key = response.Key;
|
||||
super(response);
|
||||
this.enabled = this.getResponseProperty('Enabled');
|
||||
this.key = this.getResponseProperty('Key');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user