import { CompareType } from '../enum/compare-type.enum'; import { ValueType } from '../enum/value-type.enum'; import { RelationType } from '../enum/relation-type.enum'; export class RadioHandler{ convert(qc) { const radiov = (qc.value); if(Object.keys(radiov).length === 0 || Object.keys(radiov.value).length === 0) return []; return [{ 'FilterField' : qc.labelCode, 'Compare' : CompareType.Equal, //equal 'Value' : radiov.value, 'Relation' : RelationType.And, //and 'Expresstype': ValueType.Value }]; } }