UNPKG

@omnia/fx-models

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