12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.cast_de_nrw_schule_svws_core_data_gost_GostBeratungslehrer = exports.GostBeratungslehrer = void 0;
- const JavaObject_1 = require("../../../java/lang/JavaObject");
- class GostBeratungslehrer extends JavaObject_1.JavaObject {
- id = 0;
- kuerzel = null;
- nachname = null;
- vorname = null;
- constructor() {
- super();
- }
- isTranspiledInstanceOf(name) {
- return ['de.nrw.schule.svws.core.data.gost.GostBeratungslehrer'].includes(name);
- }
- static transpilerFromJSON(json) {
- const obj = JSON.parse(json);
- const result = new GostBeratungslehrer();
- 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;
- 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 = 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() + '"') + ',';
- }
- result = result.slice(0, -1);
- result += '}';
- return result;
- }
- }
- exports.GostBeratungslehrer = GostBeratungslehrer;
- function cast_de_nrw_schule_svws_core_data_gost_GostBeratungslehrer(obj) {
- return obj;
- }
- exports.cast_de_nrw_schule_svws_core_data_gost_GostBeratungslehrer = cast_de_nrw_schule_svws_core_data_gost_GostBeratungslehrer;
- //# sourceMappingURL=GostBeratungslehrer.js.map
|