ConsumeWise / api /models.py
sonika1503
Add application file
33b10b6
raw
history blame contribute delete
278 Bytes
# Inside models.py (create this if you don't have it)
from pydantic import BaseModel
from typing import Dict, Any, Optional
class ServingSize(BaseModel):
quantity: float
class ProductInfo(BaseModel):
nutritionalInformation: Dict[str, Any]
servingSize: ServingSize