mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
19 lines
397 B
TypeScript
19 lines
397 B
TypeScript
import { FieldType } from '../../enums/fieldType';
|
|
|
|
import { FieldApi } from '../api/fieldApi';
|
|
|
|
export class FieldData {
|
|
type: FieldType;
|
|
name: string;
|
|
value: string;
|
|
|
|
constructor(response?: FieldApi) {
|
|
if (response == null) {
|
|
return;
|
|
}
|
|
this.type = response.type;
|
|
this.name = response.name;
|
|
this.value = response.value;
|
|
}
|
|
}
|