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