Migrate CartItem to Swift