mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
refactor for login uris and response model changes
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { FieldType } from '../../enums/fieldType';
|
||||
|
||||
import { FieldApi } from '../api/fieldApi';
|
||||
|
||||
export class FieldData {
|
||||
type: FieldType;
|
||||
name: string;
|
||||
value: string;
|
||||
|
||||
constructor(response: any) {
|
||||
this.type = response.Type;
|
||||
this.name = response.Name;
|
||||
this.value = response.Value;
|
||||
constructor(response: FieldApi) {
|
||||
this.type = response.type;
|
||||
this.name = response.name;
|
||||
this.value = response.value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user