ENMFloskel.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.cast_de_nrw_schule_svws_core_data_enm_ENMFloskel = exports.ENMFloskel = void 0;
  4. const JavaObject_1 = require("../../../java/lang/JavaObject");
  5. class ENMFloskel extends JavaObject_1.JavaObject {
  6. kuerzel = null;
  7. text = null;
  8. fachID = null;
  9. niveau = null;
  10. jahrgangID = null;
  11. constructor() {
  12. super();
  13. }
  14. isTranspiledInstanceOf(name) {
  15. return ['de.nrw.schule.svws.core.data.enm.ENMFloskel'].includes(name);
  16. }
  17. static transpilerFromJSON(json) {
  18. const obj = JSON.parse(json);
  19. const result = new ENMFloskel();
  20. result.kuerzel = typeof obj.kuerzel === "undefined" ? null : obj.kuerzel;
  21. result.text = typeof obj.text === "undefined" ? null : obj.text;
  22. result.fachID = typeof obj.fachID === "undefined" ? null : obj.fachID;
  23. result.niveau = typeof obj.niveau === "undefined" ? null : obj.niveau;
  24. result.jahrgangID = typeof obj.jahrgangID === "undefined" ? null : obj.jahrgangID;
  25. return result;
  26. }
  27. static transpilerToJSON(obj) {
  28. let result = '{';
  29. result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ',';
  30. result += '"text" : ' + ((!obj.text) ? 'null' : '"' + obj.text.valueOf() + '"') + ',';
  31. result += '"fachID" : ' + ((!obj.fachID) ? 'null' : obj.fachID.valueOf()) + ',';
  32. result += '"niveau" : ' + ((!obj.niveau) ? 'null' : obj.niveau.valueOf()) + ',';
  33. result += '"jahrgangID" : ' + ((!obj.jahrgangID) ? 'null' : obj.jahrgangID.valueOf()) + ',';
  34. result = result.slice(0, -1);
  35. result += '}';
  36. return result;
  37. }
  38. static transpilerToJSONPatch(obj) {
  39. let result = '{';
  40. if (typeof obj.kuerzel !== "undefined") {
  41. result += '"kuerzel" : ' + ((!obj.kuerzel) ? 'null' : '"' + obj.kuerzel.valueOf() + '"') + ',';
  42. }
  43. if (typeof obj.text !== "undefined") {
  44. result += '"text" : ' + ((!obj.text) ? 'null' : '"' + obj.text.valueOf() + '"') + ',';
  45. }
  46. if (typeof obj.fachID !== "undefined") {
  47. result += '"fachID" : ' + ((!obj.fachID) ? 'null' : obj.fachID.valueOf()) + ',';
  48. }
  49. if (typeof obj.niveau !== "undefined") {
  50. result += '"niveau" : ' + ((!obj.niveau) ? 'null' : obj.niveau.valueOf()) + ',';
  51. }
  52. if (typeof obj.jahrgangID !== "undefined") {
  53. result += '"jahrgangID" : ' + ((!obj.jahrgangID) ? 'null' : obj.jahrgangID.valueOf()) + ',';
  54. }
  55. result = result.slice(0, -1);
  56. result += '}';
  57. return result;
  58. }
  59. }
  60. exports.ENMFloskel = ENMFloskel;
  61. function cast_de_nrw_schule_svws_core_data_enm_ENMFloskel(obj) {
  62. return obj;
  63. }
  64. exports.cast_de_nrw_schule_svws_core_data_enm_ENMFloskel = cast_de_nrw_schule_svws_core_data_enm_ENMFloskel;
  65. //# sourceMappingURL=ENMFloskel.js.map