Map<String, dynamic> toMap() { return <String, dynamic>{ 'host': host, 'port': ?port, 'priority': priority, 'protocol': protocol, 'weight': weight, }; }