BenutzerKennwort.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.cast_de_nrw_schule_svws_core_data_BenutzerKennwort = exports.BenutzerKennwort = void 0;
  4. const JavaObject_1 = require("../../java/lang/JavaObject");
  5. class BenutzerKennwort extends JavaObject_1.JavaObject {
  6. user = null;
  7. password = null;
  8. constructor() {
  9. super();
  10. }
  11. isTranspiledInstanceOf(name) {
  12. return ['de.nrw.schule.svws.core.data.BenutzerKennwort'].includes(name);
  13. }
  14. static transpilerFromJSON(json) {
  15. const obj = JSON.parse(json);
  16. const result = new BenutzerKennwort();
  17. result.user = typeof obj.user === "undefined" ? null : obj.user;
  18. result.password = typeof obj.password === "undefined" ? null : obj.password;
  19. return result;
  20. }
  21. static transpilerToJSON(obj) {
  22. let result = '{';
  23. result += '"user" : ' + ((!obj.user) ? 'null' : '"' + obj.user.valueOf() + '"') + ',';
  24. result += '"password" : ' + ((!obj.password) ? 'null' : '"' + obj.password.valueOf() + '"') + ',';
  25. result = result.slice(0, -1);
  26. result += '}';
  27. return result;
  28. }
  29. static transpilerToJSONPatch(obj) {
  30. let result = '{';
  31. if (typeof obj.user !== "undefined") {
  32. result += '"user" : ' + ((!obj.user) ? 'null' : '"' + obj.user.valueOf() + '"') + ',';
  33. }
  34. if (typeof obj.password !== "undefined") {
  35. result += '"password" : ' + ((!obj.password) ? 'null' : '"' + obj.password.valueOf() + '"') + ',';
  36. }
  37. result = result.slice(0, -1);
  38. result += '}';
  39. return result;
  40. }
  41. }
  42. exports.BenutzerKennwort = BenutzerKennwort;
  43. function cast_de_nrw_schule_svws_core_data_BenutzerKennwort(obj) {
  44. return obj;
  45. }
  46. exports.cast_de_nrw_schule_svws_core_data_BenutzerKennwort = cast_de_nrw_schule_svws_core_data_BenutzerKennwort;
  47. //# sourceMappingURL=BenutzerKennwort.js.map