schreifuchs 2b13e5c03a
All checks were successful
build / windows (push) Successful in 2m22s
build / linux (push) Successful in 2m3s
remove sub things and add view
2025-03-07 15:23:33 +01:00

20 lines
365 B
TypeScript
Executable File

export namespace model {
export class Thing {
ID: number;
Name: string;
static createFrom(source: any = {}) {
return new Thing(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.ID = source["ID"];
this.Name = source["Name"];
}
}
}