Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.3 KB

File metadata and controls

30 lines (23 loc) · 1.3 KB

FoodServing

Properties

Name Type Description Notes
multiplier float The multiplier for the serving size. [optional]
serving_size float The serving size. [optional]
unit FoodUnit [optional]
unit_id int The ID of the unit. [optional]

Example

from fitbit_web_api.models.food_serving import FoodServing

# TODO update the JSON string below
json = "{}"
# create an instance of FoodServing from a JSON string
food_serving_instance = FoodServing.from_json(json)
# print the JSON string representation of the object
print(FoodServing.to_json())

# convert the object into a dict
food_serving_dict = food_serving_instance.to_dict()
# create an instance of FoodServing from a dict
food_serving_from_dict = FoodServing.from_dict(food_serving_dict)

[Back to Model list] [Back to API list] [Back to README]