product variants extension to convert list to dictionary