This will replace the ingredient tuple that is currently in place. The ingredient object should store an amount, unit, usda id, and food name. The ingredient Object will have a conversion object (filled with the amount and unit from the class) that it can use to convert it's units.
It should be noted that this class will be different than the nutrition object, which will hold the nutrition information from the usda foods endpoint for a given usda id's serving size.
The idea is that the nutrition info can be calculated from the nutrition object's serving size being converted to the ingredient object amount.
This will replace the ingredient tuple that is currently in place. The ingredient object should store an amount, unit, usda id, and food name. The ingredient Object will have a conversion object (filled with the amount and unit from the class) that it can use to convert it's units.
It should be noted that this class will be different than the nutrition object, which will hold the nutrition information from the usda foods endpoint for a given usda id's serving size.
The idea is that the nutrition info can be calculated from the nutrition object's serving size being converted to the ingredient object amount.