convert flowchart to object