typia
Version:
Superfast runtime validators with only one line
42 lines (40 loc) • 1.02 kB
JavaScript
class MetadataArrayType {
name;
value;
nullables;
recursive;
index;
/** @ignore */
constructor(props) {
this.name = props.name;
this.value = props.value;
this.index = props.index;
this.recursive = props.recursive;
this.nullables = props.nullables;
}
/** @internal */
static _From_without_value(props) {
return MetadataArrayType.create({
name: props.name,
value: null,
index: props.index,
recursive: props.recursive,
nullables: props.nullables,
});
}
/** @internal */
static create(props) {
return new MetadataArrayType(props);
}
toJSON() {
return {
name: this.name,
value: this.value.toJSON(),
nullables: this.nullables,
recursive: this.recursive,
index: this.index,
};
}
}
export { MetadataArrayType };
//# sourceMappingURL=MetadataArrayType.mjs.map