Serialize to Object with access to DiagramData class
and 3 options with storage serialized data.
Why it needed? Because in case 1 (serialize to String with serializeStringDiagram() method) and saved option 3 (data stored as child in ParentData class) we have a problem with readable file:
it look like this, because ParentData class also used jsonEncode() method - all doublequotes with backslash:
So if we use the getDiagram() method, we can solve this problem. We will also have more options for programmatically creating a diagram data (case 2 : serialize to Object with serializeObjectDiagram(), option 3 (data stored as child in ParentData class):
-it looks more readable:
Hi. For now, it has two options of serialization:
DiagramData
class and 3 options with storage serialized data.Why it needed? Because in case 1 (serialize to String with
serializeStringDiagram()
method) and saved option 3 (data stored as child inParentData
class) we have a problem with readable file:ParentData
class also usedjsonEncode()
method - all doublequotes with backslash:So if we use the
getDiagram()
method, we can solve this problem. We will also have more options for programmatically creating a diagram data (case 2 : serialize to Object withserializeObjectDiagram()
, option 3 (data stored as child inParentData
class): -it looks more readable: