/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, toNullable, EnumUtil, markType } from "igniteui-angular-core";
import { ST_ColorStyleMethodEnum_$type } from "./ST_ColorStyleMethodEnum";
/**
 * @hidden
 */
export class ST_ColorStyleMethod extends Base {
    constructor() {
        super(...arguments);
        this.c = toNullable(ST_ColorStyleMethodEnum_$type, null);
        this.e = null;
    }
    get d() {
        return this.c;
    }
    set d(a) {
        this.c = a;
    }
    get h() {
        return this.e;
    }
    set h(a) {
        this.e = a;
    }
    static a(a) {
        return ST_ColorStyleMethod.b(a);
    }
    f() {
        return this.g();
    }
    static b(a) {
        let b = new ST_ColorStyleMethod();
        let c;
        if (((() => { let d = EnumUtil.tryParse$1(ST_ColorStyleMethodEnum_$type, a, true, c); c = d.p2; return d.ret; })())) {
            b.d = toNullable(ST_ColorStyleMethodEnum_$type, c);
        }
        else {
            b.h = a;
        }
        return b;
    }
    g() {
        return this.d.hasValue ? EnumUtil.getName(ST_ColorStyleMethodEnum_$type, this.d.value) : this.h;
    }
}
ST_ColorStyleMethod.$t = markType(ST_ColorStyleMethod, 'ST_ColorStyleMethod');
//# sourceMappingURL=ST_ColorStyleMethod.js.map