Implement calling GetFood from FE

This commit is contained in:
2024-08-09 17:46:50 +02:00
parent 683c443b7f
commit b177416204
6 changed files with 24 additions and 54 deletions

View File

@@ -0,0 +1,17 @@
export namespace main {
export class Food {
static createFrom(source: any = {}) {
return new Food(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
}
}
}