lib/WixClient.js
function WixLabel() {

    this.isValid = function() {
        //TODO provide slightly better validation
        return this.name !== null
            && this.description !== null;
    };

    this.toJSON = function() {
        var _this = this;
        return {
            name : _this.name,
            description : _this.description
        };
    };
}
function WixLabel() {

    this.isValid = function() {
        //TODO provide slightly better validation
        return this.name !== null
            && this.description !== null;
    };

    this.toJSON = function() {
        var _this = this;
        return {
            name : _this.name,
            description : _this.description
        };
    };
}
function WixLabel ( ) { this . isValid = function ( ) { //TODO provide slightly better validation return this . name !== null && this . description !== null ; } ; this . toJSON = function ( ) { var _this = this ; return { name : _this . name , description : _this . description } ; } ; }
Represents a new Label in the Wix ecosystem, allowing for easy construction and creation
@mixes BaseWixAPIObject
@mixes WixLabelData
@constructor
@alias WixLabel
@class
Represents a new Label in the Wix ecosystem allowing for easy construction and creation