mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
Deep parse models (#321)
This commit is contained in:
parent
bc7bd5bd3f
commit
c395293e64
@ -12,8 +12,10 @@ export class AttachmentUploadDataResponse extends BaseResponse {
|
||||
super(response);
|
||||
this.attachmentId = this.getResponseProperty('AttachmentId');
|
||||
this.fileUploadType = this.getResponseProperty('FileUploadType');
|
||||
this.cipherResponse = this.getResponseProperty('CipherResponse');
|
||||
this.cipherMiniResponse = this.getResponseProperty('CipherMiniResponse');
|
||||
const cipherResponse = this.getResponseProperty('CipherResponse');
|
||||
const cipherMiniResponse = this.getResponseProperty('CipherMiniResponse');
|
||||
this.cipherResponse = cipherResponse == null ? null : new CipherResponse(cipherResponse);
|
||||
this.cipherMiniResponse = cipherMiniResponse == null ? null : new CipherResponse(cipherMiniResponse);
|
||||
this.url = this.getResponseProperty('Url');
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,8 @@ export class SendFileUploadDataResponse extends BaseResponse {
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
this.fileUploadType = this.getResponseProperty('FileUploadType');
|
||||
this.sendResponse = this.getResponseProperty('SendResponse');
|
||||
const sendResponse = this.getResponseProperty('SendResponse');
|
||||
this.sendResponse = sendResponse == null ? null : new SendResponse(sendResponse);
|
||||
this.url = this.getResponseProperty('Url');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user