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