import { DataField } from './DataField'; import { FormGroup } from '@angular/forms'; export class BooleanDecisionData extends DataField{ buildForm():FormGroup{ let formGroup = this.formBuilder.group({ label:this.label }); return formGroup; } fromJSONObject(item:any):BooleanDecisionData{ this.label = item.label return this; } }