export namespace models { export class Game { Collection: string; Launch: string; Id: string; Game: string; Version: string; Description: string; Players: string; ThumbnailPath: string; ImagePath: string; Release: string; Modification: string; Files: string; PublicRepositoryLink: string; Genres: string; Developers: string; Title: string; static createFrom(source: any = {}) { return new Game(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.Collection = source["Collection"]; this.Launch = source["Launch"]; this.Id = source["Id"]; this.Game = source["Game"]; this.Version = source["Version"]; this.Description = source["Description"]; this.Players = source["Players"]; this.ThumbnailPath = source["ThumbnailPath"]; this.ImagePath = source["ImagePath"]; this.Release = source["Release"]; this.Modification = source["Modification"]; this.Files = source["Files"]; this.PublicRepositoryLink = source["PublicRepositoryLink"]; this.Genres = source["Genres"]; this.Developers = source["Developers"]; this.Title = source["Title"]; } } }