Serialization fixed

This commit is contained in:
barsdeveloper
2021-11-08 22:28:26 +01:00
parent ad8c34cdab
commit 39e26bc0c2
12 changed files with 195 additions and 48 deletions

View File

@@ -11,8 +11,4 @@ export default class LocalizedTextEntity extends Entity {
getAttributes() {
return LocalizedTextEntity.attributes
}
toString() {
"NSLOCTEXT(" + `"${this.namespace}"` + ", " + `"${this.key}"` + ", " + `"${this.value}"` + ")"
}
}

View File

@@ -1,10 +1,11 @@
import Entity from "./Entity"
import Guid from "./primitive/Guid"
import PathSymbol from "./primitive/PathSymbol"
export default class PinReferenceEntity extends Entity {
static attributes = {
objectName: String,
objectName: PathSymbol,
pinGuid: Guid
}

View File

@@ -0,0 +1,17 @@
import Primitive from "./Primitive";
export default class PathSymbol extends Primitive {
constructor(value) {
super()
this.value = new String(value).valueOf()
}
valueOf() {
this.value
}
toString() {
return this.value
}
}