UNPKG

@omnia/fx-models

Version:
16 lines (15 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatePropertyValue = void 0; const PropertyValue_1 = require("../PropertyValue"); class DatePropertyValue extends PropertyValue_1.PropertyValue { constructor(date, timeZoneId) { super(); this.date = date ? date.toJSON() : undefined; this.timeZoneId = timeZoneId ? timeZoneId.toString() : undefined; } isEmpty() { return this.date == null; } } exports.DatePropertyValue = DatePropertyValue;