22 lines
601 B
TypeScript
22 lines
601 B
TypeScript
import { FieldType } from "../../enums/fieldType";
|
|
import { LinkedIdType } from "../../enums/linkedIdType";
|
|
import { BaseResponse } from "../response/baseResponse";
|
|
|
|
export class FieldApi extends BaseResponse {
|
|
name: string;
|
|
value: string;
|
|
type: FieldType;
|
|
linkedId: LinkedIdType;
|
|
|
|
constructor(data: any = null) {
|
|
super(data);
|
|
if (data == null) {
|
|
return;
|
|
}
|
|
this.type = this.getResponseProperty("Type");
|
|
this.name = this.getResponseProperty("Name");
|
|
this.value = this.getResponseProperty("Value");
|
|
this.linkedId = this.getResponseProperty("linkedId");
|
|
}
|
|
}
|