hcloud-python
hcloud-python copied to clipboard
feat: add to_dict method to domain classes
This allows us to serialize the domain classes by first converting them to "dumb types". For example, to convert the objects to JSON.
import json
domain = BaseDomain.from_dict(domain_dict)
json.dumps(domain.to_dict())