for item in items: Item( name=item.get(‘name’), price=float(item.get(‘price’)), quantity=int(item.get(‘quantity’)), )