GostSchuelerFachwahl.js 3.6 KB

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