UNPKG

@iotile/iotile-cloud

Version:

A typescript library for interfacing with the IOTile Cloud API

27 lines 792 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var PropertyTemplate = /** @class */ (function () { function PropertyTemplate(data) { this.enums = []; this.name = data.name; this.type = data.type; this.default = data.default; this.enums = data.enums; this.rawData = data; if ('id' in data) { this.id = data.id; } if ('org' in data) { this.org = data.org; } if ('extra' in data) { this.extra = data.extra; } } PropertyTemplate.prototype.toJson = function () { return this.rawData; }; return PropertyTemplate; }()); exports.PropertyTemplate = PropertyTemplate; //# sourceMappingURL=propertytemplate.js.map