export namespace config { export class Config { servers: string[]; static createFrom(source: any = {}) { return new Config(source); } constructor(source: any = {}) { if ('string' === typeof source) source = JSON.parse(source); this.servers = source["servers"]; } } }