Map<String, dynamic> toMap() { return <String, dynamic>{ 'hostname': ?hostname, 'ipAddress': ?ipAddress, }; }