mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[SM-288] Rename models to follow naming convention (#3795)
This commit is contained in:
20
libs/common/src/models/data/field.data.ts
Normal file
20
libs/common/src/models/data/field.data.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { FieldType } from "../../enums/fieldType";
|
||||
import { LinkedIdType } from "../../enums/linkedIdType";
|
||||
import { FieldApi } from "../api/field.api";
|
||||
|
||||
export class FieldData {
|
||||
type: FieldType;
|
||||
name: string;
|
||||
value: string;
|
||||
linkedId: LinkedIdType;
|
||||
|
||||
constructor(response?: FieldApi) {
|
||||
if (response == null) {
|
||||
return;
|
||||
}
|
||||
this.type = response.type;
|
||||
this.name = response.name;
|
||||
this.value = response.value;
|
||||
this.linkedId = response.linkedId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user