ParseInstallation.js 772 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _ParseObject = _interopRequireDefault(require("./ParseObject"));
  7. function _interopRequireDefault(obj) {
  8. return obj && obj.__esModule ? obj : {
  9. default: obj
  10. };
  11. }
  12. /**
  13. * @flow
  14. */
  15. /*:: import type { AttributeMap } from './ObjectStateMutations';*/
  16. class Installation extends _ParseObject.default {
  17. constructor(attributes /*: ?AttributeMap*/) {
  18. super('_Installation');
  19. if (attributes && typeof attributes === 'object') {
  20. if (!this.set(attributes || {})) {
  21. throw new Error("Can't create an invalid Installation");
  22. }
  23. }
  24. }
  25. }
  26. exports.default = Installation;
  27. _ParseObject.default.registerSubclass('_Installation', Installation);