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