Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 947 Bytes

Quantity.md

File metadata and controls

31 lines (22 loc) · 947 Bytes

Quantity

A class to represent a quantity, which is a value with units.

Properties

Name Type Description Notes
value float The numerical value. [optional] [default to 0.0]
units str The units.

Example

from rewiringamerica_rem.models.quantity import Quantity

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

# convert the object into a dict
quantity_dict = quantity_instance.to_dict()
# create an instance of Quantity from a dict
quantity_from_dict = Quantity.from_dict(quantity_dict)

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