"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cast_de_nrw_schule_svws_core_data_enm_ENMFloskel = exports.ENMFloskel = void 0; const JavaObject_1 = require("../../../java/lang/JavaObject"); class ENMFloskel extends JavaObject_1.JavaObject { kuerzel = null; text = null; fachID = null; niveau = null; jahrgangID = null; constructor() { super(); } isTranspiledInstanceOf(name) { return ['de.nrw.schule.svws.core.data.enm.ENMFloskel'].includes(name); } static transpilerFromJSON(json) { const obj = JSON.parse(json); const result = new ENMFloskel(); result.kuerzel = typeof obj.kuerzel === "undefined" ? null : obj.kuerzel; result.text = typeof obj.text === "undefined" ? null : obj.text; result.fachID = typeof obj.fachID === "undefined" ? null : obj.fachID; result.niveau = typeof obj.niveau === "undefined" ? null : obj.niveau; result.jahrgangID = typeof obj.jahrgangID === "undefined" ? null : obj.jahrgangID; return result; } static transpilerToJSON(obj) { let result = '{'; result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ','; result += '"text" : ' + ((!obj.text) ? 'null' : '"' + obj.text.valueOf() + '"') + ','; result += '"fachID" : ' + ((!obj.fachID) ? 'null' : obj.fachID.valueOf()) + ','; result += '"niveau" : ' + ((!obj.niveau) ? 'null' : obj.niveau.valueOf()) + ','; result += '"jahrgangID" : ' + ((!obj.jahrgangID) ? 'null' : obj.jahrgangID.valueOf()) + ','; result = result.slice(0, -1); result += '}'; return result; } static transpilerToJSONPatch(obj) { let result = '{'; if (typeof obj.kuerzel !== "undefined") { result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ','; } if (typeof obj.text !== "undefined") { result += '"text" : ' + ((!obj.text) ? 'null' : '"' + obj.text.valueOf() + '"') + ','; } if (typeof obj.fachID !== "undefined") { result += '"fachID" : ' + ((!obj.fachID) ? 'null' : obj.fachID.valueOf()) + ','; } if (typeof obj.niveau !== "undefined") { result += '"niveau" : ' + ((!obj.niveau) ? 'null' : obj.niveau.valueOf()) + ','; } if (typeof obj.jahrgangID !== "undefined") { result += '"jahrgangID" : ' + ((!obj.jahrgangID) ? 'null' : obj.jahrgangID.valueOf()) + ','; } result = result.slice(0, -1); result += '}'; return result; } } exports.ENMFloskel = ENMFloskel; function cast_de_nrw_schule_svws_core_data_enm_ENMFloskel(obj) { return obj; } exports.cast_de_nrw_schule_svws_core_data_enm_ENMFloskel = cast_de_nrw_schule_svws_core_data_enm_ENMFloskel; //# sourceMappingURL=ENMFloskel.js.map