@override Object toJson() { return { if (port.isNotDefault) 'port': port, if (host.isNotDefault) 'host': host, }; }