argos/dmp-frontend/src/app/models/DataField/BooleanDecisionData.ts

17 lines
379 B
TypeScript
Raw Normal View History

import { DataField } from './DataField';
import { FormGroup } from '@angular/forms';
2018-10-05 17:00:54 +02:00
export class BooleanDecisionData extends DataField<BooleanDecisionData> {
2018-10-05 17:00:54 +02:00
buildForm(): FormGroup {
const formGroup = this.formBuilder.group({
label: this.label
});
return formGroup;
}
fromJSONObject(item: any): BooleanDecisionData {
this.label = item.label;
return this;
}
}