Is there a way to convert datatable to queue item?

I found a way but i think i need help maybe you can help me.

I’m using get queue items and how can I loop through the list and get the transaction item values?