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