added a function to get a map of the data from the RowData struct