diff --git a/index.ts b/index.ts index 5ef5a14..33bfdcf 100644 --- a/index.ts +++ b/index.ts @@ -172,7 +172,7 @@ export function deserialize(Clazz: {new(): T}, json: I /** * init root class to contain json */ - let instance = new Clazz(); + let instance = {}; Object.keys(instance).forEach((key: string) => { /** @@ -191,7 +191,7 @@ export function deserialize(Clazz: {new(): T}, json: I }); - return instance; + return instance; } /**