[core] change serialization for hybrid models to model_dump
in azure.core.serialization
#41437
Labels
Content-Length: 232343 | pFad | http://github.com/Azure/azure-sdk-for-python/issues/41437
D1model_dump
in azure.core.serialization
#41437
Fetched URL: http://github.com/Azure/azure-sdk-for-python/issues/41437
Alternative Proxies:
We want to follow what dataclass does and do model -> json serialization as a module-level method in
azure.core.serialization
. The thought here is to add something likemodel_dump
inazure.core.serialization
, which will take in a hybrid model and output it in a dumped model format. This way, people can save it to file / pass tojson.dumps
.As part of this, we will deprecate
.as_dict()
on our new hybrid modelsThe text was updated successfully, but these errors were encountered: