Save lines while creating a flow diagram



I am trying to save the lines after creating a connection between the two cards, but I am unable to save those lines. If anyone can help me that would be great!!!



Could you please, clarify your request?
What lines do you mean? Are these the shape connectors?
You can save all your diagram data to JSON string using the serialize() method: