12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.cast_de_nrw_schule_svws_core_data_enm_ENMLehrer = exports.ENMLehrer = void 0;
- const JavaObject_1 = require("../../../java/lang/JavaObject");
- class ENMLehrer extends JavaObject_1.JavaObject {
- id = 0;
- kuerzel = null;
- nachname = null;
- vorname = null;
- eMailDienstlich = null;
- constructor() {
- super();
- }
- isTranspiledInstanceOf(name) {
- return ['de.nrw.schule.svws.core.data.enm.ENMLehrer'].includes(name);
- }
- static transpilerFromJSON(json) {
- const obj = JSON.parse(json);
- const result = new ENMLehrer();
- if (typeof obj.id === "undefined")
- throw new Error('invalid json format, missing attribute id');
- result.id = obj.id;
- result.kuerzel = typeof obj.kuerzel === "undefined" ? null : obj.kuerzel;
- result.nachname = typeof obj.nachname === "undefined" ? null : obj.nachname;
- result.vorname = typeof obj.vorname === "undefined" ? null : obj.vorname;
- result.eMailDienstlich = typeof obj.eMailDienstlich === "undefined" ? null : obj.eMailDienstlich;
- return result;
- }
- static transpilerToJSON(obj) {
- let result = '{';
- result += '"id" : ' + obj.id + ',';
- result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ',';
- result += '"nachname" : ' + ((!obj.nachname) ? 'null' : '"' + obj.nachname.valueOf() + '"') + ',';
- result += '"vorname" : ' + ((!obj.vorname) ? 'null' : '"' + obj.vorname.valueOf() + '"') + ',';
- result += '"eMailDienstlich" : ' + ((!obj.eMailDienstlich) ? 'null' : '"' + obj.eMailDienstlich.valueOf() + '"') + ',';
- result = result.slice(0, -1);
- result += '}';
- return result;
- }
- static transpilerToJSONPatch(obj) {
- let result = '{';
- if (typeof obj.id !== "undefined") {
- result += '"id" : ' + obj.id + ',';
- }
- if (typeof obj.kuerzel !== "undefined") {
- result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ',';
- }
- if (typeof obj.nachname !== "undefined") {
- result += '"nachname" : ' + ((!obj.nachname) ? 'null' : '"' + obj.nachname.valueOf() + '"') + ',';
- }
- if (typeof obj.vorname !== "undefined") {
- result += '"vorname" : ' + ((!obj.vorname) ? 'null' : '"' + obj.vorname.valueOf() + '"') + ',';
- }
- if (typeof obj.eMailDienstlich !== "undefined") {
- result += '"eMailDienstlich" : ' + ((!obj.eMailDienstlich) ? 'null' : '"' + obj.eMailDienstlich.valueOf() + '"') + ',';
- }
- result = result.slice(0, -1);
- result += '}';
- return result;
- }
- }
- exports.ENMLehrer = ENMLehrer;
- function cast_de_nrw_schule_svws_core_data_enm_ENMLehrer(obj) {
- return obj;
- }
- exports.cast_de_nrw_schule_svws_core_data_enm_ENMLehrer = cast_de_nrw_schule_svws_core_data_enm_ENMLehrer;
- //# sourceMappingURL=ENMLehrer.js.map
|