Fix issue with anonymous structures (#2186)

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Vadim Shchepotev
2022-12-20 22:54:11 +11:00
committed by GitHub
co-authored by Lea Anthony
parent 04e92a813b
commit e2f1429c67
5 changed files with 150 additions and 10 deletions
@@ -27,7 +27,7 @@ export namespace binding_test {
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.empty = this.convertValues(source["empty"], null);
this.empty = this.convertValues(source["empty"], Object);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {