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