@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
47 lines • 1.58 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../../../Constants';
import { IdConverter } from '../../../custom-converters/id-converter';
import { CreateValue } from './create-value';
/**
* @category Model V2
*/
let CreateTextValueAsString = class CreateTextValueAsString extends CreateValue {
constructor() {
super(Constants.TextValue);
this.text = '';
}
};
__decorate([
JsonProperty(Constants.ValueAsString, String),
__metadata("design:type", Object)
], CreateTextValueAsString.prototype, "text", void 0);
CreateTextValueAsString = __decorate([
JsonObject('CreateTextValueAsString'),
__metadata("design:paramtypes", [])
], CreateTextValueAsString);
export { CreateTextValueAsString };
/**
* @category Model V2
*/
let CreateTextValueAsXml = class CreateTextValueAsXml extends CreateValue {
constructor() {
super(Constants.TextValue);
this.xml = '';
this.mapping = '';
}
};
__decorate([
JsonProperty(Constants.TextValueAsXml, String),
__metadata("design:type", Object)
], CreateTextValueAsXml.prototype, "xml", void 0);
__decorate([
JsonProperty(Constants.TextValueHasMapping, IdConverter),
__metadata("design:type", Object)
], CreateTextValueAsXml.prototype, "mapping", void 0);
CreateTextValueAsXml = __decorate([
JsonObject('CreateTextValueAsXml'),
__metadata("design:paramtypes", [])
], CreateTextValueAsXml);
export { CreateTextValueAsXml };
//# sourceMappingURL=create-text-value.js.map