core.Map<core.String, core.dynamic> toJson() { final ip = this.ip; final port = this.port; return {'ip': ?ip, 'port': ?port}; }