mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 00:24:48 +08:00
22 lines
411 B
JavaScript
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
|
|
}
|
|
}
|