Skip to content

Commit e98a2a5

Browse files
update deserialization
1 parent d9cdadc commit e98a2a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/internal/objectSerializer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ export class ObjectSerializer {
124124
if (data.hasOwnProperty(attributeType.baseName)) {
125125
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
126126
}
127+
else if (data.hasOwnProperty(attributeType.name)) {
128+
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.name], attributeType.type);
129+
}
127130
}
128131
}
129132
return instance;

0 commit comments

Comments
 (0)