FCLauncher/fclauncher/frontend/wailsjs/go/models.ts

22 lines
448 B
TypeScript
Raw Normal View History

export namespace main {
export class Modpack {
Name: string;
Id: string;
Last_updated: string;
static createFrom(source: any = {}) {
return new Modpack(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.Name = source["Name"];
this.Id = source["Id"];
this.Last_updated = source["Last_updated"];
}
}
}