CurrencyValue Class
A currency value element.
New in version 2023-07-31: The code property.
- Inheritance
-
builtins.objectCurrencyValue
Constructor
CurrencyValue(**kwargs: Any)
Methods
from_dict |
Converts a dict in the shape of a CurrencyValue to the model itself. |
to_dict |
Returns a dict representation of CurrencyValue. |
from_dict
Converts a dict in the shape of a CurrencyValue to the model itself.
from_dict(data: Dict) -> CurrencyValue
Parameters
Name | Description |
---|---|
data
Required
|
A dictionary in the shape of CurrencyValue. |
Returns
Type | Description |
---|---|
CurrencyValue |
to_dict
Returns a dict representation of CurrencyValue.
to_dict() -> Dict
Returns
Type | Description |
---|---|
dict |
Attributes
amount
The currency amount.
amount: float
code
Resolved currency code (ISO 4217), if any.
code: str | None
symbol
The currency symbol, if found.
symbol: str | None
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python