wails-template/frontend/wailsjs/go/models.ts
u80864958 e7b89e4ef7 Revert "restructure to template"
This reverts commit f0813614b0.
2025-02-04 09:58:20 +01:00

20 lines
366 B
TypeScript
Executable File

export namespace things {
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"];
}
}
}