mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
support camel or pascal case in API responses
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
export class TwoFactorRecoverResponse {
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
export class TwoFactorRecoverResponse extends BaseResponse {
|
||||
code: string;
|
||||
|
||||
constructor(response: any) {
|
||||
this.code = response.Code;
|
||||
super(response);
|
||||
this.code = this.getResponseProperty('Code');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user