New anums added, bug fix causing object loss

This commit is contained in:
barsdeveloper
2023-05-06 20:06:16 +02:00
parent f7abd7ff6e
commit e97ce5d562
7 changed files with 85 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ export default class ObjectSerializer extends Serializer {
switch (key) {
case "Class":
case "Name":
case "ExportPath":
case "CustomProperties":
// Serielized separately, check doWrite()
return false
@@ -79,6 +80,7 @@ export default class ObjectSerializer extends Serializer {
let result = indentation + "Begin Object"
+ (entity.Class?.type || entity.Class?.path ? ` Class=${this.doWriteValue(entity.Class, insideString)}` : "")
+ (entity.Name ? ` Name=${this.doWriteValue(entity.Name, insideString)}` : "")
+ (entity.ExportPath?.type || entity.ExportPath?.path ? ` ExportPath=${this.doWriteValue(entity.ExportPath, insideString)}` : "")
+ "\n"
+ super.doWrite(
entity,