1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@
|
||||
|
||||
export default class MapTools { |
||||
public static InstanceConvert(obj: any): any { |
||||
var propNames = Object.getOwnPropertyNames(obj.prototype); |
||||
for (var name in propNames) { |
||||
if (obj[name].discriminator === "ISelf") { |
||||
obj[name] = obj[name].self; |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue