"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cast_de_nrw_schule_svws_core_data_kataloge_KatalogEintragStrassen = exports.KatalogEintragStrassen = void 0;
const JavaObject_1 = require("../../../java/lang/JavaObject");
class KatalogEintragStrassen extends JavaObject_1.JavaObject {
    Ort = null;
    RegSchl = null;
    Strasse = null;
    Stand = null;
    constructor() {
        super();
    }
    isTranspiledInstanceOf(name) {
        return ['de.nrw.schule.svws.core.data.kataloge.KatalogEintragStrassen'].includes(name);
    }
    static transpilerFromJSON(json) {
        const obj = JSON.parse(json);
        const result = new KatalogEintragStrassen();
        result.Ort = typeof obj.Ort === "undefined" ? null : obj.Ort;
        result.RegSchl = typeof obj.RegSchl === "undefined" ? null : obj.RegSchl;
        result.Strasse = typeof obj.Strasse === "undefined" ? null : obj.Strasse;
        result.Stand = typeof obj.Stand === "undefined" ? null : obj.Stand;
        return result;
    }
    static transpilerToJSON(obj) {
        let result = '{';
        result += '"Ort" : ' + ((!obj.Ort) ? 'null' : '"' + obj.Ort.valueOf() + '"') + ',';
        result += '"RegSchl" : ' + ((!obj.RegSchl) ? 'null' : '"' + obj.RegSchl.valueOf() + '"') + ',';
        result += '"Strasse" : ' + ((!obj.Strasse) ? 'null' : '"' + obj.Strasse.valueOf() + '"') + ',';
        result += '"Stand" : ' + ((!obj.Stand) ? 'null' : '"' + obj.Stand.valueOf() + '"') + ',';
        result = result.slice(0, -1);
        result += '}';
        return result;
    }
    static transpilerToJSONPatch(obj) {
        let result = '{';
        if (typeof obj.Ort !== "undefined") {
            result += '"Ort" : ' + ((!obj.Ort) ? 'null' : '"' + obj.Ort.valueOf() + '"') + ',';
        }
        if (typeof obj.RegSchl !== "undefined") {
            result += '"RegSchl" : ' + ((!obj.RegSchl) ? 'null' : '"' + obj.RegSchl.valueOf() + '"') + ',';
        }
        if (typeof obj.Strasse !== "undefined") {
            result += '"Strasse" : ' + ((!obj.Strasse) ? 'null' : '"' + obj.Strasse.valueOf() + '"') + ',';
        }
        if (typeof obj.Stand !== "undefined") {
            result += '"Stand" : ' + ((!obj.Stand) ? 'null' : '"' + obj.Stand.valueOf() + '"') + ',';
        }
        result = result.slice(0, -1);
        result += '}';
        return result;
    }
}
exports.KatalogEintragStrassen = KatalogEintragStrassen;
function cast_de_nrw_schule_svws_core_data_kataloge_KatalogEintragStrassen(obj) {
    return obj;
}
exports.cast_de_nrw_schule_svws_core_data_kataloge_KatalogEintragStrassen = cast_de_nrw_schule_svws_core_data_kataloge_KatalogEintragStrassen;
//# sourceMappingURL=KatalogEintragStrassen.js.map