You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monetary amounts can also be exported to dict as well as created with dict value inputs, which can be great to for example transport a monetary value in JSON.
To return a dict from a stockholm.Money object it can either be casted to dict (dict(money)) or by using money.asdict().
Monetary amounts can also be created using dict input either by using Money.from_dict(input_dict) or by calling the constructor directly with dict input such as Money(dict_input).