export namespace main { export class ServerStatus { running: boolean; port: number; url: string; pid: number; pythonBin: string; pythonMode: string; lastError?: string; static createFrom(source: any = {}) { return new ServerStatus(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.running = source["running"]; this.port = source["port"]; this.url = source["url"]; this.pid = source["pid"]; this.pythonBin = source["pythonBin"]; this.pythonMode = source["pythonMode"]; this.lastError = source["lastError"]; } } }