Ejemplo n.º 1
0
        public static WorkflowBatchPredictResult Deserialize(dynamic jsonObject)
        {
            Workflow workflow = null;

            if (jsonObject.workflow != null)
            {
                workflow = Workflows.Workflow.Deserialize(jsonObject.workflow);
            }
            var workflowResults = new List <WorkflowResult>();

            foreach (dynamic result in jsonObject.results)
            {
                workflowResults.Add(WorkflowResult.Deserialize(result));
            }
            return(new WorkflowBatchPredictResult(workflow, workflowResults));
        }
 private WorkflowPredictResult(Workflow workflow, WorkflowResult workflowResult)
 {
     Workflow       = workflow;
     WorkflowResult = workflowResult;
 }