22 lines
448 B
TypeScript
Executable File
22 lines
448 B
TypeScript
Executable File
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"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|