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