Map<String, dynamic> toMap() { return <String, dynamic>{ 'host': host, 'nodeId': nodeId, 'port': port, 'state': state, 'zone': zone, }; }