saveObject() {
        var data = {
            x: this.x,
            y: this.y,
            objectType: this.objectType,
            label: this.label,
            direction: this.direction,
            labelDirection: this.labelDirection,
            propagationDelay: this.propagationDelay,
            customData: this.customSave(),
        };

        if(this.canShowInSubcircuit) data.subcircuitMetadata = this.subcircuitMetadata;
        return data;
    }
To generate JSON-safe data that can be loaded
@memberof CircuitElement
@return {JSON} - the data to be saved