core.Map<core.String, core.dynamic> toJson() => { if (address != null) 'address': address!, if (port != null) 'port': port!, };