Interface ZOSerializationInterface
Defines a standard interface to serialize and deserialize ZOSim objects.
Assembly: Unity.ZeroSim.dll
Syntax
public interface ZOSerializationInterface
Properties
|
Improve this Doc
View Source
JSON
Declaration
Property Value
Type |
Description |
Newtonsoft.Json.Linq.JObject |
|
|
Improve this Doc
View Source
Name
Declaration
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Type
Type of this object. For example "joint.hinge".
Declaration
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Deserialize(ZOSimDocumentRoot, JObject)
Sets the state of the object from JSON. JSON could come from file or network or wherever.
Declaration
void Deserialize(ZOSimDocumentRoot documentRoot, JObject json)
Parameters
Type |
Name |
Description |
ZOSimDocumentRoot |
documentRoot |
|
Newtonsoft.Json.Linq.JObject |
json |
|
|
Improve this Doc
View Source
Serialize(ZOSimDocumentRoot, Object)
From the current state of the object it will generate the JSON for this object and any children.
Declaration
JObject Serialize(ZOSimDocumentRoot documentRoot, Object parent = null)
Parameters
Returns
Type |
Description |
Newtonsoft.Json.Linq.JObject |
|