serializeInstance
Generate the serialized form of a typed instance.
connection.serializeInstance( instance )
Generate a raw object representation of a typed instance. This default implementation simply clones the
instance
object, copying all the properties of the object (excluding properties of it's prototypes) to a new
object. This is equivalent to Object.assign({}, instance)
.
Parameters
- instance
{Instance}
:the instance to serialize
Returns
{Object}
:
a serialized representation of the instance