UNPKG

typia

Version:

Superfast runtime validators with only one line

44 lines (41 loc) 1.2 kB
import { Metadata } from './Metadata.mjs'; class MetadataProperty { key; value; description; jsDocTags; of_protobuf_; /* ----------------------------------------------------------- CONSTRUCTORS ----------------------------------------------------------- */ /** @ignore */ constructor(props) { this.key = props.key; this.value = props.value; this.description = props.description; this.jsDocTags = props.jsDocTags; } /** @internal */ static create(props) { return new MetadataProperty(props); } /** @internal */ static from(property, dict) { return MetadataProperty.create({ key: Metadata.from(property.key, dict), value: Metadata.from(property.value, dict), description: property.description, jsDocTags: property.jsDocTags.slice(), }); } toJSON() { return { key: this.key.toJSON(), value: this.value.toJSON(), description: this.description, jsDocTags: this.jsDocTags, }; } } export { MetadataProperty }; //# sourceMappingURL=MetadataProperty.mjs.map