"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
/**
* Enum class ValidationScopes.
* @enum {}
* @readonly
*/

var ValidationScopes = {
  /**
  * value: {DEFAULT}
  * @const
  */
  DEFAULT: "DEFAULT"
};
ValidationScopes.constructFromObject = function (obj) {
  if (typeof obj === 'string' || obj instanceof String) {
    return ValidationScopes[obj];
  } else {
    throw new Error("Received object name is not an instance of String");
  }
};
ValidationScopes.validate = function (obj) {
  if (typeof obj !== 'undefined' && obj !== null) {
    switch (obj) {
      case ValidationScopes.DEFAULT:
        return;
      default:
        throw new Error("Invalid : must be ValidationScopes.{  }");
    }
  }
};
Object.freeze(ValidationScopes);
var _default = exports["default"] = ValidationScopes;