Files
ueblueprint/js/entity/IdentifierEntity.js
2022-09-04 14:33:22 +02:00

22 lines
411 B
JavaScript

import IEntity from "./IEntity"
export default class IdentifierEntity extends IEntity {
static attributes = {
value: String,
}
static attributeConverter = {
fromAttribute: (value, type) => new IdentifierEntity(value),
toAttribute: (value, type) => value.toString()
}
valueOf() {
return this.value
}
toString() {
return this.value
}
}