in azure/durable_functions/models/OrchestratorState.py [0:0]
def to_json(self) -> Dict[str, Any]:
"""Convert object into a json dictionary.
Returns
-------
Dict[str, Any]
The instance of the class converted into a json dictionary
"""
json_dict: Dict[str, Any] = {}
add_attrib(json_dict, self, '_is_done', 'isDone')
if self._replay_schema != ReplaySchema.V1:
add_attrib(json_dict, self, 'schema_version', 'schemaVersion')
self._add_actions(json_dict)
if not (self._output is None):
json_dict['output'] = self._output
if self._error:
json_dict['error'] = self._error
if self._custom_status:
json_dict['customStatus'] = self._custom_status
return json_dict