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