Map<String, dynamic> toMap() { return <String, dynamic>{ 'ip': ip, 'ipv6': ipv6, 'port': port, 'protocol': protocol, }; }